Skip to content

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

@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

3 participants