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

Chris Bitmead sword-devel@crosswire.org
Sun, 23 Jun 2002 23:56:56 +1000


Also the standard for XML happens to be a '\n' only. (I always thought 
the \r\n thing was stupid).



Victor Porton wrote:

>That solution was wrong. My final solution is substituting "\n
\n" for 
>empty lines. Release expected shortly.
>
>  
>
>>I had thought that mac newlines were '\r' not '\n\r'.... either I have made
>>a mistake or you have... (not that it's that important, just that details
>>like this can be problematic if misunderstood)  ;o)
>>    
>>
>
>  
>
>>>Victor Porton wrote:
>>>      
>>>
>>>>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).
>>>>        
>>>>
>>>      
>>>
>>    
>>
>
>  
>