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.
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.