Page 1 of 1

Line wrap for comments and processing instructions

Posted: Fri Jul 20, 2012 4:47 pm
by bmayer
When viewing content in Author view in oXygen, comments and processing instructions that are long lines of text don't line wrap. Is there a way to have them wrapped so you don't have to scroll to the right?

I have Preferences, Editor, Edit Modes, Text, Line wrap checked off but it doesn't appear to work for comments and processing instructions.

Thanks,
Belinda Mayer

Re: Line wrap for comments and processing instructions

Posted: Fri Jul 20, 2012 4:56 pm
by Radu
Hi Belinda,

Well, actually Oxygen 14.0 which was release a month or so ago changed displayed comments and processing instructions to be line-wrapped by default.

But this can be done via the CSS, what type of XML documents are you editing?
Maybe I can propose you some modifications if you cannot update to 14.0.

Regards,
Radu

Re: Line wrap for comments and processing instructions

Posted: Fri Jul 20, 2012 5:08 pm
by bmayer
Thanks Radu for the quick reply.

We're editing DITA XML documents. We use the Eclipse Author plug-in version, although since I'm in support I have a standalone version of Editor. I confirmed the issue happens in both.

If you can pass along the CSS that would be great. I'd have to look into our plans to upgrade to 14.

Belinda

Re: Line wrap for comments and processing instructions

Posted: Mon Jul 23, 2012 10:19 am
by Radu
Hi Belinda,

Just open the CSS:

OXYGEN_INSTALL_DIR/frameworks/dita/css_classed/dita.css

and after the last import:

Code: Select all

@import "conrefs.css";
add the lines:

Code: Select all

@namespace oxy url('http://www.oxygenxml.com/extensions/author');

oxy|processing-instruction,
oxy|comment,
oxy|cdata{
white-space:pre-wrap !important;
}
Regards,
Radu

Re: Line wrap for comments and processing instructions

Posted: Mon Jul 23, 2012 5:52 pm
by bmayer
Thanks Radu, that CSS fix worked.

On a related note, if you do a print of an XML DITA document and select Adobe PDF as the printer the text is now wrapped for the standalone version of oXygen Editor but not for the Eclipse version of oXygen. Is there another change to implement to get that working of is that an Eclipse issue?

Belinda

Re: Line wrap for comments and processing instructions

Posted: Tue Jul 24, 2012 8:38 am
by Radu
Hi Belinda,

Yes, we've had this limitation from the very beginning, but you are the first user to report it.
On Eclipse the content is printed without wrapping the text according to the page width settings.

I added an improvement request to try to remove this limitation on Eclipse and I'll update this thread when this gets implemented.

Regards,
Radu

Re: Line wrap for comments and processing instructions

Posted: Wed Oct 08, 2014 10:55 am
by Radu
Hi,

In Oxygen 16.1 which was just released, the Oxygen Eclipse Plugin should have better support for printing content in the Author visual editing mode.

Regards,
Radu