HTML beautifier breaks when encountering {#
See original GitHub issueThe HTML beautifier appears to stop functioning after encountering the sequence {#. Have tested using that as a string, as well as in an attribute. The beautifier stops working after any occurrence of that string anywhere in the input.
Input
The code looked like this before beautification:
<div><div>{#Test}</div></div>
Expected Output
The code should have looked like this after beautification:
<div>
<div>{#Test}</div>
</div>
Actual Output
The code actually looked like this after beautification:
<div>
<div>{#Test}</div></div>
Steps to Reproduce
Run specified text through beautifier.
Environment
OS: WIndows 10, NodeJS Version: 1.10.1
Settings
Example: Have tested with default settings as well as:
{
indent_with_tabs: false,
indent_size: 4,
unformatted: [],
wrap_line_length: 0
}
If you need any more information let me know and I can provide a more detailed sample.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
HTML - Line breaks changing code output #1304 - GitHub
When I put the elements together in this way, the formatter automatically breaks them up onto separate lines, changing the output. I don't...
Read more >VS Code beautify break tags in react html - Stack Overflow
Question is how can i change beautify settings to not transfer tags to a new line(div, p, span and etc)?. reactjs · visual-studio-code...
Read more >Pp · pp 1.0.1 · OCaml Packages
space instructs the pretty-printing algorithm that the line may be broken at this point. ... Always break the line when encountering a break...
Read more >Html - Android Developers
Is notified when HTML tags are encountered that the parser does not know how ... Html.TagHandler) : Separate block-level elements with line breaks...
Read more >Line breaks in email notifications and rich HTML
Rich HTML provides additional control over line breaks in your email notifications and templates.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey sorry I thought I’d already replied. Yeah the templating none did work for me, issue is resolved. Thanks for the help 😃
Literally normal text. We feed that exact string into the beautifier.