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

Backport 4304 #5288

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Backport 4304 #5288

wants to merge 1 commit into from

Conversation

ytmimi
Copy link
Contributor

@ytmimi ytmimi commented Mar 31, 2022

Do not add trailing space to empty lines in comment code blocks (#4304)

Currently, the first line pushed in a code block is a comment line
delimiter that includes a trailing space, even if the content of that
line is empty. Later lines are handled correctly because their content
is checked before adding the comment line delimiter. So, just apply the
same logic as is done for later lines to the first line.

Closes #4251
Closes #5421

Do not add trailing space to empty lines in comment code blocks

Currently, the first line pushed in a code block is a comment line
delimiter that includes a trailing space, even if the content of that
line is empty. Later lines are handled correctly because their content
is checked before adding the comment line delimiter. So, just apply the
same logic as is done for later lines to the first line.

Closes 4251
@ytmimi
Copy link
Contributor Author

ytmimi commented Nov 28, 2022

This PR also resolves the trailing whitespace issues experienced in #5614, before merging we should add a test case for that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants