Dear list,

using current latest from 2023.03.10 12:18, I have this XML sample:

  <pre>

  <element/>

  </pre>


And the following environment:

  \setupinteraction[state=start]

  \startxmlsetups xml:text
    \xmlsetsetup{\xmldocument}
      {pre}
      {xml:copy:html}
  \stopxmlsetups

  \xmlregistersetup{xml:text}

  \startxmlsetups xml:copy:html
    \xmltobuffer{#1}{.}{text}
    \comment[location=inmargin,buffer=text]{}
    \attachment[method=hidden, name=attach.xml, buffer=text]
    \null
  \stopxmlsetups

If I save the XML file with Windows EOL chars (CR LF), I get extra blank
lines in the PDF annotation.

Everything is fine, if XML has Unix line endings (LF char).

Attachment contains the proper line ending in each case.

Could anyone confirm what appears to be a tricky issue?

Many thanks for your help,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to