Page 1 of 1

Author: line-wrap between elements

Posted: Thu Jun 23, 2016 11:42 am
by friedemann_bach
Dear Forum,

in the Author Mode, is there a way to avoid line-breaks between two elements which are not separated by a whitespace character?

So that a word that comprises more than one element, like "<a>con</a>t<b>ent</b>" would not be represented as "con[next line]tent" or "cont[next line]ent", but remain unwrapped?

Re: Author: line-wrap between elements

Posted: Thu Jun 23, 2016 12:25 pm
by Radu
Hi,

The only way I see an answer for this would be if you set space preserve on the <a> element like:

Code: Select all

a{
white-space:pre;
}
Regards,
Radu

Re: Author: line-wrap between elements

Posted: Thu Jun 23, 2016 12:41 pm
by friedemann_bach
Thanks Radu, this is indeed helpful in some of my cases!

Best regards, and many thanks for your work.

Re: Author: line-wrap between elements

Posted: Thu Jun 23, 2016 1:20 pm
by Radu
Hi,

We'll also consider adding this as a default behavior in a future version. In a way, if a couple of inline elements are part of the same word Oxygen should not consider that it can visually split them on multiple lines and see them as a single word which cannot be split on multiple lines.

Regards,
Radu

Re: Author: line-wrap between elements

Posted: Thu Jun 23, 2016 1:33 pm
by friedemann_bach
This would be perfect, of course! Thank you for considering this.

Re: Author: line-wrap between elements

Posted: Fri Jun 24, 2016 9:40 pm
by HomeGoods
I'm not sure what'll happen once the said default behavior change is realized. But please be sure not to disturb some languages that do not use whitespace as a word boundary.

Re: Author: line-wrap between elements

Posted: Sat Jun 25, 2016 1:30 pm
by friedemann_bach
Good point.

Re: Author: line-wrap between elements

Posted: Mon Jun 27, 2016 8:10 am
by Radu
Hi,

For Asian languages which indeed do not have whitespaces between characters we usually allow breaking to occur after any character, but favoring line breaks after certain characters like full-width comma.

Regards,
Radu

Re: Author: line-wrap between elements

Posted: Mon Jun 18, 2018 3:52 pm
by Radu
Hi,

We released Oxygen 20.1 and it should have better handling for such cases.

Regards,
Radu