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.

Optional <p> closing not implemented

See original GitHub issue

Description

Resolved all but the optional closing <p> tags for release of v1.8.0. Someone should tackle this issue when convenient with plenty of tests as it is a guaranteed bug farm.

Input

The code looked like this before beautification:

<p> Some content
<h1> Other content
</h1>

Expected Output

The code should have looked like this after beautification:

<p> Some content
<h1> Other content
</h1>

Actual Output

The code actually looked like this after beautification:

<p> Some content
    <h1> Other content
    </h1>

Settings

Default

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
nikeeecommented, Jan 5, 2021

It works as I expected. Thanks! 😃

0reactions
bitwisemancommented, Apr 5, 2020

@nikeee Thanks for bringing this up. Could you do me a favor and try some of your inputs on https://beautifier.io/ to make sure my fix is working?

Read more comments on GitHub >

github_iconTop Results From Across the Web

P-end-tag (</p>) is not needed in HTML [closed]
A p element's end tag can be omitted if the p element is immediately followed by an address, article, aside, blockquote, details, div,...
Read more >
Allowing explicit @escaping for optional closures in function ...
Hi all, I drafted a formal proposal to introduce explicit @escaping for optional closures in function parameters.
Read more >
Error: Optional feature not implemented after upgrading ... - IBM
This technote addresses an issue where IBM® Rational® ClearQuest® can no longer connect to Oracle after upgrading to version 2003.06.13.
Read more >
Some HTML is "Optional" | CSS-Tricks
It does to me, but the closing </p> tags are optional. ... But hey, a perf gain is a perf gain, so I...
Read more >
Why I “hate” optional parameters in C# | by The Code Wrapper
In fact, take a close look at the definition of optional arguments in ... through a concrete implementation, if the default value definition...
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