Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gobble spaces after backslash-hardline-break #1

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

Kijimuna
Copy link

@Kijimuna Kijimuna commented Aug 5, 2024

After a line break the leading spaces of the next line are consumed (at the end of InlineParserImpl::parseNewLine()). However, InlineParserImpl::parseNewLine() does not handle all kinds of ending a line: The backslash-hardline-break is handled in InlineParserImpl::parseBackslash() instead, so the parser does not consume the leading spaces of the following line for that case. The commit changes that so that spaces are consumed there as well now.

Fixes vsch#619.

@danjelalura danjelalura requested a review from a team August 5, 2024 16:17
- amended test specification in "Hard line break example 5" in
  ast_spec.md (the leading spaces are no longer part of the
  Text element in the line following the hard line break)
@Thilo-Acrolinx Thilo-Acrolinx enabled auto-merge (squash) August 26, 2024 10:35
@Thilo-Acrolinx Thilo-Acrolinx merged commit 8d60bd3 into acrolinx:master Aug 26, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leading spaces at the beginning of the next line are not ignored when using a backslash as a hard line break
2 participants