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

fix: do not replace comments with empty lines #142

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Feb 7, 2022

per my understanding, bluemonday is already removing the comments, but we were appending an empty line to each html block, so each comment was actually being turned into an empty line instead of nothing.

per my tests, seems like we don't need to append that extra line... if we do, we can change it to only add if the contents are not empty.

closes #139

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@caarlos0 caarlos0 self-assigned this Feb 7, 2022
@caarlos0 caarlos0 requested a review from muesli February 7, 2022 12:30
@caarlos0 caarlos0 added the bug Something isn't working label Feb 7, 2022
@caarlos0 caarlos0 marked this pull request as ready for review February 7, 2022 12:30
@muesli muesli merged commit d5fb104 into master Feb 7, 2022
@muesli muesli deleted the fix-empty-line-comments branch February 7, 2022 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTML tags are replaced with spaces
2 participants