[sc34wg3] CTM: Line-terminators

Xuân Baldauf xuan--sc34wg3--isotopicmaps.org at baldauf.org
Fri Mar 27 07:07:52 EDT 2009


Lars Marius Garshol wrote:
> * Lars Heuer
>   
>> I think for the single line comment [1] the reference to 0xA is
>> correct since 0xA is always the trailing part of a new line
>> terminator.
>>     
>
> This works because any 0xD will then be considered harmless  
> whitespace. However, it's not the case that 0xA is always part of the  
> newline.
>
> Wikipedia has an article on this:
>    http://en.wikipedia.org/wiki/Newline
>
> Commodore and older Apple machines use just 0xD.
>
> And, famously, IBM machines use NEL (0x15), which at one point was  
> going to be added to the WS production in XML 2nd ed, but I see that  
> that didn't happen in the end. I guess that means we can ignore it, too.
>
> The question is if we should change the production to read
>
>    (0xD | 0xA)
>
> instead of just
>
>    0xA.
>
> This would work with all three ASCII-based terminators.
>   
Well, maybe, but (0xD | 0xA) as newline would mean that the sequence
"0xD 0xA" are two lines. However, I do not think whether anyone cares.
> Don't have any strong opinions on this, really.
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.isotopicmaps.org/pipermail/sc34wg3/attachments/20090327/9526c290/attachment.htm 


More information about the sc34wg3 mailing list