languagetool-org / languagetool

Style and Grammar Checker for 25+ Languages
https://languagetool.org
GNU Lesser General Public License v2.1
12.21k stars 1.38k forks source link

quote within spaces #2001

Open ghost opened 4 years ago

ghost commented 4 years ago

It is not correct when a single or double quote has spaces on both sides. The Java rules check a lot about these special characters, but not this. It is easy enough to make in XML, but since it is probably true for all languages, should it not be added to the existing Java routines for checking " ' and ( ) ?

s0nata commented 4 years ago

just made a pull request (#2159) with a possible fix, it addresses the issues of whitespace around quotes, but the () brackets were already being treated well.

s0nata commented 4 years ago

just updated the pull request with testing code

danielnaber commented 4 years ago

The pull request has been merged, thanks! Can this issue be closed now?

s0nata commented 4 years ago

@baarsrj @danielnaber while working on this pull request I have noticed the following things:

I would like to work on this. Should I open an issue, or just submit a new pull request?

danielnaber commented 4 years ago

Feel free to open an issue.