My question is about what happens when I copy plain text from an external editor into the XML view. But it's not urgent, so I'll wait until the next time I hit the problem and then send you an example.
N -----Original Message----- From: Hussein Shafie [mailto:huss...@xmlmind.com] Sent: woensdag 11 maart 2020 16:34 To: Grundtvig Nielsen Niels Cc: 'xmleditor-support@xmlmind.com' Subject: Re: [XXE] question about importing plain text Caution! External email. Do not open attachments or click links, unless this email comes from a known sender and you know the content is safe. I'm not sure to understand. If you type some XML in the source view and expect it to be stored as is (same newlines, same indentation, same character entities, etc, in a nutshell, same physical representation) in the XML file then saved by XXE, well, this is definitely not possible. This is somewhat explained in this message: https://www.mail-archive.com/xmleditor-support@xmlmind.com/msg12095.html On 3/11/20 2:36 PM, Grundtvig Nielsen Niels wrote: > > When rescuing content from other formats, I often find it easiest to > prepare a plain-text file, add DITA tags and then paste the content into > the XML source view of a topic. Fairly often, what looks like clean XML > source with no extra spaces appears in the DITA topic view with empty > <text> elements. Going back to XML source view shows the lines have been > wrapped, with a space inserted between the end of one element and the > beginning of the next: for example, > > lorem ipsum.</p> <p>Dolor sit amet > > where the XML file in the external editor had > > lorem ipsum.</p> > > <p>Dolor sit amet > > Is this an artefact of line-end settings? It would save quite a lot of > time and inconvenience if pasted text rendered the way I've just seen it > in the editor. fwiw, I usually work with Unix LF, LTF-8. > Let's suppose your pair of <p> is contained in a DITA <section> (http://docs.oasis-open.org/dita/dita/v1.3/errata02/os/complete/part2-tech-content/langRef/base/section.html#section). A DITA <section> may contain text and unlike, say a <pre>, whitespace is not significant there. This implies that XXE is legit to convert the newline char (and any other indentation whitespace) separating your 2 <p>s to just a single space char. ********************************************************************************************* Worldline is a registered trade mark and trading name owned by Worldline through its holding company. This e-mail and the documents attached are confidential and intended solely for the addressee. If you receive this e-mail in error, you are not authorized to copy, disclose, use or retain it. Please notify the sender immediately and delete this email from your systems. As emails may be intercepted, amended or lost, they are not secure. Worldline therefore can accept no liability for any errors or their content. Although Worldline endeavours to maintain a virus-free network, we do not warrant that this transmission is virus-free and can accept no liability for any damages resulting from any virus transmitted. The risks are deemed to be accepted by everyone who communicates with Worldline by email. -- XMLmind XML Editor Support List xmleditor-support@xmlmind.com https://www.xmlmind.com/mailman/listinfo/xmleditor-support