ietf-tools / xml2rfc

Generate RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies
https://ietf-tools.github.io/xml2rfc/
BSD 3-Clause "New" or "Revised" License
63 stars 35 forks source link

Plaintext formatter for tables leaves space for word joiners (&wj;) #1103

Open cabo opened 4 months ago

cabo commented 4 months ago

Describe the issue

The plaintext formatter for tables reserves space in columns for word joiners (which are correctly then not included in the plaintext rendering, leaving some column space unused).

The weird effect can currently be seen in the second table (table 21) at

https://tzi.org/~cabo/9535/1103-diff.html

which shows a diff that gets surprisingly large by the column space consumed by //book[position()<3] rendered from <tt>//&wj;book[position()&lt;3]</tt>.

Code of Conduct