raphink
raphink

Reputation: 3665

Prevent line breaks before or after `<a>` tag

I have an ebook which contains a code like:

Some text (<a id="aref"></a>Some more text) that continues

I need the anchor to refer to this part of the text in the index. However, the tag allows line breaks, so I often end up with a line break right after (.

Is there a way to prevent these line breaks (putting the anchor before the ( is not an option).

Upvotes: 5

Views: 18738

Answers (3)

maximus ツ
maximus ツ

Reputation: 8065

Make your anchor tag inline using the CSS property display: inline, for example:

 <a style="display: inline;" >

Upvotes: 11

raphink
raphink

Reputation: 3665

This is definitely a bug in Aldiko. I have reported it and am waiting for them to fix it.

Upvotes: 0

andy
andy

Reputation: 2399

It shouldn't be breaking at all unless you've added css to do so.

Try:

display: inline;
clear: none;

Upvotes: 0

Related Questions