This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix trailing whitespace after opening raw tag breaking formatting
Turns out our "only want the meat" logic was slightly off and made it so we printed "" when there was whitespace before the newline character. Ugh. Fixes #144
- Loading branch information
1 parent
1af0619
commit 13ca899
Showing
4 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
it should format as expected when there's whitespace after the opening comment | ||
{% comment %} | ||
This is a comment | ||
{% endcomment %} | ||
<p>hello, world!</p> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
debug it should format as expected when there's whitespace after the opening comment | ||
{% comment %} | ||
This is a comment | ||
{% endcomment %} | ||
<p>hello, world!</p> |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { assertFormattedEqualsFixed } from '../test-helpers'; | ||
import * as path from 'path'; | ||
|
||
describe(`Unit: ${path.basename(__dirname)}`, () => { | ||
assertFormattedEqualsFixed(__dirname); | ||
}); |