-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
hugo_stats.json: bad tag if html element contains tab character #8417
Comments
I am unable to reproduce the problem. git clone --single-branch -b hugo-github-issue-8417 https://github.com/jmooring/hugo-testing hugo-github-issue-8417
cd hugo-github-issue-8417
hugo
cat hugo_stats.json Also, according to the CommonMark specification, an HTML block must be followed by a blank line. That is why the page renders incorrectly. You can try it here. |
Thanks @jmooring for your advice regarding the blank line. I've managed to reproduce the issue with tabs instead of spaces for indentation. Note: I'm not sure if it's a good practice or not 🤔 |
Thank you. I've update the minimal reproducible example, and the title of this issue. The simplest failing example is:
The CommonMark specification provides many examples of using tabs for indentation, so your preference is technically sound. |
- Reorder code blocks - Rename cssClassCollectorWriter to htmlElementCollectorWriter, as it just collect html element information - Expand benchmark to test for minified and unminified content Fixes gohugoio#8396, Fixes gohugoio#8417
- Reorder code blocks - Rename cssClassCollectorWriter to htmlElementCollectorWriter, as it just collect html element information - Expand benchmark to test for minified and unminified content Fixes gohugoio#8396, Fixes gohugoio#8417
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Description
Steps to reproduce
form
) declared on several lines, with tabs for indentation, as this example:hugo server -e production
Expected:
Tag
"form"
should be added within the list of tags withinhugo_stats.json
file.Actual:
Tag
"form\n\taction=\"[URL]\"\n\tmethod=\"post\""
is added within the list of tags inhugo_stats.json
file.Note:
The issue does not happen if the form is declared in one line :
Similar issue already raised here: #7958
Maybe also related to #8396
The text was updated successfully, but these errors were encountered: