OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [docbook] Breaking long lines in XHTML

> -----Original Message-----
> From: Ernest G. Allen [mailto:eallen@owt.com]
> Sent: Tuesday, January 19, 2010 2:40 AM
> To: docbook@lists.oasis-open.org
> Subject: Re: [docbook] Breaking long lines in XHTML

> [...]
> Do you have a pretty-printer (source code reformatter) for the 
> language being used?  It might be simpler to run the original source 
> code files thorugh a pretty-printer before wrapping them as DocBook 
> <programlisting> elements.  It is usually a good thing to do in any 
> case, to make sure that the layout of the code is consistent.

That's a good idea! If there was only a pretty-printer for C++ to wrap long
lines. AFAIK the widely used pretty-printers like Artistic Style have no
option to set a maximum line length. :-/ 

For now I'll set the CSS property white-space to pre-wrap. It's not ideal
but better than long lines being cut off. The best solution would probably
be if reading systems supported scrolling horizontally for wide blocks
(because of long lines, huge images or anything else wider than the screen).


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]