affeldt-aist / coq2html

An HTML documentation generator for Coq source files
GNU General Public License v2.0
1 stars 3 forks source link

semantics of white spaces #17

Closed affeldt-aist closed 1 month ago

affeldt-aist commented 8 months ago

"This made me discover that coq2html is basically just removing the initial ( and trailing ) but keeps all the trailing whitespaces. I'm not sure we want this since two whitespaces, or more, have a specific semantics in markdown (force line break). This may lead to strange results, depending on the number of space before the final *) (which is something we don't control and which shouldn't have any meaning)." @proux01

proux01 commented 8 months ago

To be more precise, this is about end of line whitespaces.

affeldt-aist commented 5 months ago

This is related to issue #32 and PR #37 proposes a solution

proux01 commented 5 months ago

I doubt #37 fixes the issue (for instance when we don't have any space before *)). I don't know what's the best solution. The painful fact is that having *) aligned on the right margin forces user to put spaces before it, which clashes with \n being used by markdown for forced line break. So it seems we should either:

In any case, something has to be done, the current situation with ridiculous amounts of end of line spaces sometime forcing line breaks, sometime not, is pretty bad.