Re: Authorship and formatting fixes on the versioning document I wrote

Laurence Rowe <[email protected]>
Newsgroups gmane.comp.web.zope.plone.documentation
Message-ID <[email protected]>
2010/2/15 Alexander Limi <limi-z4DKO/[email protected]>:
> On Sun, Feb 14, 2010 at 4:41 PM, Laurence Rowe <[email protected]> wrote:
>>
>> This looks like a serialisation artefact from libxml2.
>
> Yeah, I assumed it would be something like that. :)
>
>>
>> This affects all of our content as text areas have newlines
>> transferred as CRLF
>> (http://blogs.warwick.ac.uk/chrismay/entry/how_are_newlines/) and Zope
>> does no internal conversion from CRLF to LF. This means all user
>> entered content has CRLF line endings which gets included into the
>> page template output as is (the rest of the page template is rendered
>> with LF line endings). It's only a apparent in <pre> tags in FF after
>> the libxml2 parse / serialise.
>>
>> I guess I can try to bring this up on the libxml2 mailing list.
>
> Great, thank you for doing this. If it can't be fixed there, we need some
> sort of filter on the Zope side to filter out CRs, is that correct?

Scratch that. I just realised I can do a string replacement on text
within a <pre> to remove the CR chars.

Laurence

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.