Optional parameter of sectioning commands triggers UNPAIRED_BRACKETS rule #123
Labels
1-bug 🐛
Issue type: Bug report (something isn't working as expected)
2-confirmed
Issue status: Confirmed, reproducible bug in LTeX
3-fixed
Issue resolution: Issue has been fixed on the develop branch
Milestone
Describe the bug
When the optional parameter for the short title of the sectioning commands is used, the closing bracket will be marked by LTeX saying
Unpaired symbol: '[' seems to be missingLTeX - EN_UNPAIRED_BRACKETS
.The reason for this is, that somehow the closing square bracket of the optional parameter gets not stripped out before language tool checks the string:
INFORMATION: Checking the following text in language 'en-GB' via LanguageTool: '\n\nISO standards]ISO standards. '
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
The closing bracket will not get handed to language tool.
Sample document
If the bug occurs for a specific document (e.g. LaTeX), please paste it here. If your document is very long or confidential, please create and attach a smaller example for which the bug still occurs so that we can reproduce it.
Ignore the fact, that the optional parameter in this example is redundant. In the real document, an acronym command is used in the full title.
LTeX configuration
Please paste all configuration settings starting with
ltex.
from yoursettings.json
. You can help us by temporarily removing some irrelevant settings from yoursettings.json
and see if the bug still occurs."LTeX Language Server" log file
First, reproduce the bug. Then, go to
View
→Output
and selectLTeX Language Server
in the drop-down list. Paste this log here:"LTeX Language Client" log file
First, set the
ltex.trace.server
setting in yoursettings.json
to"verbose"
. Then, reload the VS Code window and reproduce the bug. Go toView
→Output
and selectLTeX Language Client
in the drop-down list. Paste this log here (note: it will contain your checked document):Version information
List here the version information of the relevant software.
Additional context/information
You can add any other context or information about the problem here.
The text was updated successfully, but these errors were encountered: