Skip to content
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

Update js-beautify version in package.json #84

Merged
merged 1 commit into from
Dec 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 76 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"inline-elements": "^1.0.0",
"js-beautify": "1.5.5",
"js-beautify": "1.13.0",
"mocha": "^7.1.1",
"prettier": "^2.0.4",
"typescript": "^3.8.3"
Expand Down
3 changes: 2 additions & 1 deletion test/cases/embedded-list.fragment.html
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
hello 1. this should not be a list.
hello
1. this should not be a list.
4 changes: 2 additions & 2 deletions test/cases/extra-linebreaks.fragment.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<emu-val>foo</emu-val>
! bar
<emu-val>foo</emu-val>!
bar
12 changes: 4 additions & 8 deletions test/cases/flexible-indent-nested-list.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
<ol>
<li>Item 1
<ol>
<li>Item 1<ol>
<li>Item 1a</li>
<li>Item 1b</li>
</ol>
</li>
<li>Item 2
<ol>
<li>Item 2<ol>
<li>Item 2a</li>
</ol>
</li>
<li>Item 3</li>
<li>Item 4
<ol>
<li>Item 4a
<ol>
<li>Item 4<ol>
<li>Item 4a<ol>
<li>Item 4ai</li>
<li>Item 4aii</li>
</ol>
Expand Down
3 changes: 1 addition & 2 deletions test/cases/html-chars.fragment.html
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
"1
< 2 & 2>= 0"
"1 < 2 & 2>= 0"
6 changes: 2 additions & 4 deletions test/cases/html-elements.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<ol>
<li>
<ins>Ins tags <var>are</var> allowed</ins>.</li>
<li>They can
<ins>also <var>be</var></ins> embedded.</li>
<li><ins>Ins tags <var>are</var> allowed</ins>.</li>
<li>They can <ins>also <var>be</var></ins> embedded.</li>
</ol>
4 changes: 1 addition & 3 deletions test/cases/html-escaping.fragment.html
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Naked things like
< should be escaped in <code>co
<de</code>, in <emu-val>formats></emu-val>, in <emu-const>co<st</emu-const>, and etc.
Naked things like < should be escaped in <code>co<de< /code>, in <emu-val>formats></emu-val>, in <emu-const>co<st</emu-const>, and etc.
9 changes: 3 additions & 6 deletions test/cases/iterator-close.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
<li>Assert: Type(<var>iterator</var>) is Object.</li>
<li>Assert: <var>completion</var> is a Completion Record.</li>
<li>Let <var>hasReturn</var> be HasProperty(<var>iterator</var>, <code>"return"</code>).</li>
<li>ReturnIfAbrupt(<var>hasReturn</var>).
<ol>
<li>If <var>hasReturn</var> is <emu-val>true</emu-val>, then
<ol>
<li>ReturnIfAbrupt(<var>hasReturn</var>).<ol>
<li>If <var>hasReturn</var> is <emu-val>true</emu-val>, then<ol>
<li>Let <var>innerResult</var> be Invoke(<var>iterator</var>, <code>"return"</code>, ( )).</li>
<li>If <var>completion</var>.[[type]] is not <emu-const>throw</emu-const> and <var>innerResult</var>.[[type]] is <emu-const>throw</emu-const>, then
<ol>
<li>If <var>completion</var>.[[type]] is not <emu-const>throw</emu-const> and <var>innerResult</var>.[[type]] is <emu-const>throw</emu-const>, then<ol>
<li>Return <var>innerResult</var>.</li>
</ol>
</li>
Expand Down
2 changes: 1 addition & 1 deletion test/cases/leading-spaces.fragment.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<emu-val>test</emu-val>
<emu-val>test</emu-val>
3 changes: 2 additions & 1 deletion test/cases/linebreaks.fragment.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
if a paragraph contains a linebreak, it should preserve the linebreak in the output (before beautification) and even if a line starts with a
if a paragraph contains a linebreak, it should preserve the linebreak in
the output (before beautification) and even if a line starts with a
<emu-const>format</emu-const>, line breaks are preserved
6 changes: 2 additions & 4 deletions test/cases/list-id.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<ol>
<li id="foo">Item</li>
<li>Item</li>
<li>Item
<ol>
<li>Item<ol>
<li id="bar">Item</li>
<li>Item</li>
</ol>
</li>
<li>Item
<ul>
<li>Item<ul>
<li>Unordered item</li>
<li id="baz">Unordered item</li>
</ul>
Expand Down
6 changes: 2 additions & 4 deletions test/cases/list-numbering.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<ol start="0">
<li>Item 0</li>
<li>Item 1</li>
<li>Item 3
<ol start="2">
<li>Item 3<ol start="2">
<li>Item 1b</li>
<li>Item 1c</li>
</ol>
</li>
<li>Item 4
<ol start="10">
<li>Item 4<ol start="10">
<li>Item 4j</li>
</ol>
</li>
Expand Down
9 changes: 6 additions & 3 deletions test/cases/mangled-list-items.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<ol>
<li>normal list item 1.this one is mangled.
<ol>
<li>normal list item 1.this one is mangled 1this one is even more mangled this is a normal line of text</li>
<li>normal list item
1.this one is mangled.<ol>
<li>normal list item
1.this one is mangled
1this one is even more mangled
this is a normal line of text</li>
</ol>
</li>
</ol>
6 changes: 4 additions & 2 deletions test/cases/multiline-items.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<ol>
<li>lists allow multiline items.</li>
<li>but it inserts a space.</li>
<li>lists allow
multiline items.</li>
<li>but it inserts
a space.</li>
</ol>
3 changes: 2 additions & 1 deletion test/cases/multiline.fragment.html
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
paragraphs can have multiple lines but line breaks create a space!
paragraphs can have multiple lines
but line breaks create a space!
12 changes: 4 additions & 8 deletions test/cases/nested-list.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
<ol>
<li>Item 1
<ol>
<li>Item 1<ol>
<li>Item 1a</li>
<li>Item 1b</li>
</ol>
</li>
<li>Item 2
<ol>
<li>Item 2<ol>
<li>Item 2a</li>
</ol>
</li>
<li>Item 3</li>
<li>Item 4
<ol>
<li>Item 4a
<ol>
<li>Item 4<ol>
<li>Item 4a<ol>
<li>Item 4ai</li>
<li>Item 4aii</li>
</ol>
Expand Down