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

white space issues within p tags #121

Open
benzkji opened this issue Feb 19, 2018 · 0 comments
Open

white space issues within p tags #121

benzkji opened this issue Feb 19, 2018 · 0 comments

Comments

@benzkji
Copy link

benzkji commented Feb 19, 2018

I have seen there are a bunch of other white space issue (#21, #18). This seems hard to solve so it works for everyone...my case is within a p tag:

<p><strong>what </strong>
    on a new line.
</p>

in this snippet, both the space within strong and also the spaces created by newline and tab spaces, are removed. I would excpect that either, nothing is touched within the p tag, or, that at least on whitespace would remain for where there were many, before. Example: convert newline + 8*space to on space.

I've seen that the htmlmin project (not that much of docs, no django integration) allows tags to be excluded, could this be an option (with pre and textarea in there by default)?

Final note: After collecting issues and stuff, it seems it is already possible, with the EXCLUDE_TAGS_FROM_MINIFYING setting...will check and report - this would certainly be something for docs! huge time saver :)

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

No branches or pull requests

1 participant