Skip to content

gobble spaces after backslash-hardline-break#1

Merged
thilo-m merged 2 commits into
acrolinx:masterfrom
Kijimuna:master
Aug 26, 2024
Merged

gobble spaces after backslash-hardline-break#1
thilo-m merged 2 commits into
acrolinx:masterfrom
Kijimuna:master

Conversation

@Kijimuna
Copy link
Copy Markdown

@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/flexmark-java#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-m thilo-m enabled auto-merge (squash) August 26, 2024 10:35
@thilo-m thilo-m merged commit 8d60bd3 into acrolinx:master Aug 26, 2024
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