Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#520 tei:eg to xhtml:pre broken in 6.26

closed-rejected
5
2013-01-29
2013-01-29
Dominique Meeùs
No

Under 6.26, the content of the eg loses its newlines before it is passed to the pre.
This was (and still is) not the case with transforms level 11409 in SVN.
Attached, test TEI source with the two outputs.

Discussion

  • TEI source

     
    Attachments
  • 6.26 output

     
    Attachments
  • 11409 output

     
    Attachments
  • hmm. a side effect of the implementation of the whitespace handling rules
    (http://www.tei-c.org/release/doc/tei-p5-doc/en/html/ST.html#STGAxs), so
    adding xml:space="preserve" will fix the <eg>

    you don't want to hear this, I suspect. I am sort of reluctant to special case <eg>. I will
    take advice.

     
  • Wow! Glad to see that my very old neurons still learn so much new stuff every day.
    Adding xml:space="preserve" to eg indeed solves the problem under 6.26. I feel that, semantically, eg should be xml-space-preserve by default, but if this is difficult, I don’t mind adding the attribute in my code. I do not have so much old eg and it is easy to search for and correct.

     
    • status: open --> closed-rejected
     
  • the opinion of others on the TEI council suggests I have no reason to give <eg> special treatment, so I'll leave as is for the moment.