[sword-devel] I now replace '\n'->'\r' in modules

Victor Porton sword-devel@crosswire.org
Sun, 23 Jun 2002 10:05:58 +0600


> Why?

Thank you, you caused me to understand find an error. I need to replace only 
'\n\n' -> '\n\r'.

>   data entry.  So an ASCII blank line should be encoded as "\n\n".

libSword becomes mad on a blank line inside an entry (at least with RawLD). It 
is the reason why I need the replacement.

> > I found the solution for my last question about newlines:
> > 
> > I will replace '\n'->'\r'. So be aware (especially Windows programmers) that 
> > my LD editor may create modules having entries with '\r' symbol (I recall that 
> > ' ', '\n', '\r', '\t' (and only these Unicode symbols) are XML whitespace 
> > symbols).
-- 
Victor Porton (porton@ex-code.com)