textlint / textlint-plugin-latex2e

Textlint Plugin LaTeX2ε
MIT License
67 stars 8 forks source link

latex-utensils v4.x #171

Open pddg opened 3 years ago

pddg commented 3 years ago

https://github.com/tamuratak/latex-utensils/blob/v4.0.0/CHANGELOG.md#L8-L12

v4.x introduce softbreak, space, and Linebreak. This will break our algorithms of parsing the output of latex-utensils.

refs #135

pddg commented 3 years ago

I reported the issue about why softbreak and space have no location information. refs https://github.com/tamuratak/latex-utensils/issues/26

pddg commented 3 years ago

My suggestion that adds location information to softbreak and space is rejected by the maintainer.

The completeBlank function should take care of these properly, so we may simply ignore them.

tani commented 3 years ago

Hmm..., we still need to maintain the completeBlank function but it is not so straightway to deal AST. We now are spending a large part of the code to complete the lacking information retrieved by latex-utensils. We have common sense reducing code lines is better to make no more bugs. Coulld we make monkey patch for latex-utensils. I guess this is better than completeBlank.