pkubowicz / opendetex

Improved version of Detex - tool for extracting plain text from TeX and LaTeX sources
Other
236 stars 35 forks source link

newlines are like spaces in math inline mode #45

Closed sgerwk closed 6 years ago

sgerwk commented 6 years ago

TeX treats newlines as spaces when in inline math, except that empty lines cause errors. In other words, a correct latex file never contains two consecutive newlines, and a single newline is considered like a space in inline math.

Without this commit, two newlines in an line math formula create an empty line. These are treated like paragraph endings, and therefore sentence endings, by LanguageTool.

pkubowicz commented 6 years ago

Cheers!