Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

html not formatted after uppercase unformatted tag, e.g. <B> #160

Closed
jk2 opened this Issue · 0 comments

2 participants

jk2 Einar Lielmanis
jk2

E.g. the following is styled as below

<TABLE>
    <TR>
        <TD>
             <B>Test</B></TD></TR></TABLE>

Reason: Code assumes that end tag is in lowercase.

Fix: In beautify-html.js

303c303
<       if (orig_tag && orig_tag.indexOf(delimiter) != -1) {
---
>       if (orig_tag && orig_tag.toLowerCase().indexOf(delimiter) != -1) {
340c340
<       } while (content.indexOf(delimiter) == -1);
---
>       } while (content.toLowerCase().indexOf(delimiter) == -1);
Einar Lielmanis einars closed this issue from a commit
Einar Lielmanis einars HTML assumed end tags are in lowercase (fix #160)
@jk2:

<TABLE>
    <TR>
        <TD>
             <B>Test</B></TD></TR></TABLE>

Reason: Code assumes that end tag is in lowercase.
11d0476
Einar Lielmanis einars closed this in 11d0476
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.