l...@gnu.org (Ludovic Courtès) skribis: > Regarding rendering: Andy noted that spaces after a sentence-ending > periods are not preserved. I’ve investigated, but there are tests that > assume that whitespace is collapsed, so that will require more thought.
More precisely, Texinfo says (info "(texinfo) Multiple Spaces"): Ordinarily, TeX collapses multiple whitespace characters (space, tab, and newline) into a single space. Info output, on the other hand, preserves whitespace as you type it, except for changing a newline into a space; this is why it is important to put two spaces at the end of sentences in Texinfo documents. So I believe that it means that stexi should preserve whitespace (which it doesn’t currently), and that it’s the renderer’s job to trim whitespace or not. Tests in texinfo.test will have to be adjusted accordingly. Currently, the parser consumes whitespace: scheme@(guile-user)> (texi-fragment->stexi "foo. bar.") $2 = (*fragment* (para "foo. bar.")) WDYT? Ludo’.