kosmikus / lhs2tex

Preprocessor for typesetting Haskell sources with LaTeX
Other
99 stars 28 forks source link

Prevent gobbling of space before first character of comments #77

Closed casperbp closed 10 months ago

casperbp commented 4 years ago

Minor bug-fix.

kosmikus commented 4 years ago

Thanks a lot for the PR. But I disagree with this change.

The default definitions of \onelinecomment and \commentbegin are arguably wrong, but they're also easy to change, and I'm always reluctant to make changes that modify the output.

Anyway, if a change should be made, it should be there, and not to the %subst directive, which would now be forcing a space to occur in the output regardless of what the definitions of \onelinecomment and \commentbegin are.