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 » Thu Jun 23, 2016 11:42 am

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: 6559
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author: line-wrap between elements

Post by Radu » Thu Jun 23, 2016 12:25 pm

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 » Thu Jun 23, 2016 12:41 pm

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

Best regards, and many thanks for your work.

Radu
Posts: 6559
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author: line-wrap between elements

Post by Radu » Thu Jun 23, 2016 1:20 pm

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 » Thu Jun 23, 2016 1:33 pm

This would be perfect, of course! Thank you for considering this.

HomeGoods
Posts: 89
Joined: Wed Feb 09, 2005 8:57 am

Re: Author: line-wrap between elements

Post by HomeGoods » Fri Jun 24, 2016 9:40 pm

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 » Sat Jun 25, 2016 1:30 pm

Good point.

Radu
Posts: 6559
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author: line-wrap between elements

Post by Radu » Mon Jun 27, 2016 8:10 am

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: 6559
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author: line-wrap between elements

Post by Radu » Mon Jun 18, 2018 3:52 pm

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