s On Sat, Nov 28, 2015 at 8:34 AM, Garret Wilson <gar...@globalmentor.com> wrote:
> On 11/28/2015 1:43 AM, Hussein Shafie wrote: > > ... > > Unfortunately XXE converted all my XHTML5 ends-of-line from CRLF to > LFLF!!! It wasn't enough the XXE would convert every CRLF to LF (which > would be the semantic conversion, as CRLF represents only a single EOL), > but XXE converted every CRLF to LFLF, effectively doubling the line > count! This completely screws up my content as well, as something as > simple as <h1>Test</h1>CRLF<p>Hello World</p> gets an extra line between > the header and the paragraph. > > Can you fix this basic problem? > > > I'm sorry but the answer is no. > > * CRLF --> LFLF not really; more complex than this. > > In fact your existing XHTML5 file contains extra whitespace. XMLmind XML > Editor does not strip this extra whitespace. > > ... > > * CRLF --> LF is part of the XML specification. > http://www.w3.org/TR/xml/#sec-line-ends > > > Yes, I'm well aware of the XML specification. I was writing XML parsers > from scratch as early as 1999. > > It's funny that you're referencing the XML spec, which clearly says that > an XML processor must act as if CRLF were normalized to a single LF. By > your own admission then, XXE is not a true XML processor, because instead > of *normalizing* CRLF to a single LF, you are *corrupting* it to LFLF. > Note that the specification says "... a single #xA...". So yes, I was > reporting a bug, as I said. You are adding LFs when you shouldn't > "Unfortunately XXE converted all my XHTML5 ends-of-line from CRLF to LFLF!" isn't good enough; if XXE really did do such a silly thing I want to know about it, but I need to know how to reproduce it. Did you open a file with one CRLF in XXE, save it, then open it in a plaintext editor and find LFLF? Or what? As far as I can tell XXE does exactly what an XML editor should do. Which is NOT what a plaintext editor should do! -Gregg
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support