-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use more aggressive newlines in html mode tag bodies
- Loading branch information
1 parent
6678784
commit 93ebb54
Showing
49 changed files
with
300 additions
and
93 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
src/__tests__/__snapshots__/avoid-whitespace.expected/auto.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
<div>${foo} (<span>${bar}</span>)</div> | ||
<div> | ||
${foo} ( | ||
<span>${bar}</span> | ||
) | ||
</div> |
6 changes: 5 additions & 1 deletion
6
src/__tests__/__snapshots__/avoid-whitespace.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
<div>${foo} (<span>${bar}</span>)</div> | ||
<div> | ||
${foo} ( | ||
<span>${bar}</span> | ||
) | ||
</div> |
6 changes: 5 additions & 1 deletion
6
src/__tests__/__snapshots__/avoid-whitespace.expected/with-parens.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
<div>${foo} (<span>${bar}</span>)</div> | ||
<div> | ||
${foo} ( | ||
<span>${bar}</span> | ||
) | ||
</div> |
6 changes: 4 additions & 2 deletions
6
src/__tests__/__snapshots__/comments-inline-complex.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/__tests__/__snapshots__/dynamic-tag-name.expected/auto.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<for(element in blah)> | ||
<${element.foo}><include("foo")/></> | ||
<${element.foo}> | ||
<include("foo")/> | ||
</> | ||
</for> |
4 changes: 3 additions & 1 deletion
4
src/__tests__/__snapshots__/dynamic-tag-name.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<for(element in blah)> | ||
<${element.foo}><include("foo")/></> | ||
<${element.foo}> | ||
<include("foo")/> | ||
</> | ||
</for> |
4 changes: 3 additions & 1 deletion
4
src/__tests__/__snapshots__/dynamic-tag-name.expected/with-parens.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<for(element in blah)> | ||
<${element.foo}><include("foo")/></> | ||
<${element.foo}> | ||
<include("foo")/> | ||
</> | ||
</for> |
5 changes: 4 additions & 1 deletion
5
src/__tests__/__snapshots__/formating-tags-multiline.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
<div class="hello"> | ||
<span>Welcome to the wonderful world of <b>Marko</b></span> | ||
<span> | ||
Welcome to the wonderful world of | ||
<b>Marko</b> | ||
</span> | ||
</div> |
7 changes: 6 additions & 1 deletion
7
src/__tests__/__snapshots__/formating-tags-single-line.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
<div class="hello"><span>Welcome to the <b>Marko</b></span></div> | ||
<div class="hello"> | ||
<span> | ||
Welcome to the | ||
<b>Marko</b> | ||
</span> | ||
</div> |
5 changes: 4 additions & 1 deletion
5
src/__tests__/__snapshots__/formatting-tag-with-content.expected/auto.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
<b><i/><span/></b> | ||
<b> | ||
<i/> | ||
<span/> | ||
</b> |
5 changes: 4 additions & 1 deletion
5
src/__tests__/__snapshots__/formatting-tag-with-content.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
<b><i/><span/></b> | ||
<b> | ||
<i/> | ||
<span/> | ||
</b> |
5 changes: 4 additions & 1 deletion
5
src/__tests__/__snapshots__/formatting-tag-with-content.expected/with-parens.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
<b><i/><span/></b> | ||
<b> | ||
<i/> | ||
<span/> | ||
</b> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/__tests__/__snapshots__/marko-prettyprint-file.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
<div><span>Hello World</span></div> | ||
<div> | ||
<span>Hello World</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/__tests__/__snapshots__/shorthand-body.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
<div id="foo">Hello World</div> | ||
<div id="foo"> | ||
Hello World | ||
</div> |
11 changes: 10 additions & 1 deletion
11
src/__tests__/__snapshots__/single-line.expected/auto.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
<div><span>Hello <b><a href="#">World</a></b></span></div> | ||
<div> | ||
<span> | ||
Hello | ||
<b> | ||
<a href="#"> | ||
World | ||
</a> | ||
</b> | ||
</span> | ||
</div> |
11 changes: 10 additions & 1 deletion
11
src/__tests__/__snapshots__/single-line.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
<div><span>Hello <b><a href="#">World</a></b></span></div> | ||
<div> | ||
<span> | ||
Hello | ||
<b> | ||
<a href="#"> | ||
World | ||
</a> | ||
</b> | ||
</span> | ||
</div> |
11 changes: 10 additions & 1 deletion
11
src/__tests__/__snapshots__/single-line.expected/with-parens.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
<div><span>Hello <b><a href="#">World</a></b></span></div> | ||
<div> | ||
<span> | ||
Hello | ||
<b> | ||
<a href="#"> | ||
World | ||
</a> | ||
</b> | ||
</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.