question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTML beautifier breaks when encountering {#

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Tgohcommented, Aug 7, 2019

Hey sorry I thought I’d already replied. Yeah the templating none did work for me, issue is resolved. Thanks for the help 😃

1reaction
Tgohcommented, Jul 27, 2019

Literally normal text. We feed that exact string into the beautifier.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found