Author: line-wrap between elements

Having trouble installing Oxygen? Got a bug to report? Post it all here.
friedemann_bach
Posts: 48
Joined: Wed Oct 22, 2014 4:11 pm

Author: line-wrap between elements

Post 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?
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author: line-wrap between elements

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
friedemann_bach
Posts: 48
Joined: Wed Oct 22, 2014 4:11 pm

Re: Author: line-wrap between elements

Post by friedemann_bach »

Thanks Radu, this is indeed helpful in some of my cases!

Best regards, and many thanks for your work.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author: line-wrap between elements

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
friedemann_bach
Posts: 48
Joined: Wed Oct 22, 2014 4:11 pm

Re: Author: line-wrap between elements

Post by friedemann_bach »

This would be perfect, of course! Thank you for considering this.
HomeGoods
Posts: 96
Joined: Wed Feb 09, 2005 8:57 am

Re: Author: line-wrap between elements

Post 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.
friedemann_bach
Posts: 48
Joined: Wed Oct 22, 2014 4:11 pm

Re: Author: line-wrap between elements

Post by friedemann_bach »

Good point.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author: line-wrap between elements

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author: line-wrap between elements

Post by Radu »

Hi,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply