-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix no end-of-file linefeed producing duplicates
- Loading branch information
Showing
4 changed files
with
121 additions
and
3 deletions.
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
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 @@ | ||
<p>🤔</p><p>✨</p> |
117 changes: 117 additions & 0 deletions
117
test/fixtures/eof-eol-missing-two-paragraphs/output.json
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,117 @@ | ||
{ | ||
"type": "RootNode", | ||
"children": [ | ||
{ | ||
"type": "ParagraphNode", | ||
"children": [ | ||
{ | ||
"type": "SentenceNode", | ||
"children": [ | ||
{ | ||
"type": "SymbolNode", | ||
"value": "🤔", | ||
"position": { | ||
"start": { | ||
"line": 1, | ||
"column": 4, | ||
"offset": 3 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 6, | ||
"offset": 5 | ||
} | ||
} | ||
} | ||
], | ||
"position": { | ||
"start": { | ||
"line": 1, | ||
"column": 4, | ||
"offset": 3 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 6, | ||
"offset": 5 | ||
} | ||
} | ||
} | ||
], | ||
"position": { | ||
"start": { | ||
"line": 1, | ||
"column": 4, | ||
"offset": 3 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 6, | ||
"offset": 5 | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "ParagraphNode", | ||
"children": [ | ||
{ | ||
"type": "SentenceNode", | ||
"children": [ | ||
{ | ||
"type": "SymbolNode", | ||
"value": "✨", | ||
"position": { | ||
"start": { | ||
"line": 1, | ||
"column": 13, | ||
"offset": 12 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 14, | ||
"offset": 13 | ||
} | ||
} | ||
} | ||
], | ||
"position": { | ||
"start": { | ||
"line": 1, | ||
"column": 13, | ||
"offset": 12 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 14, | ||
"offset": 13 | ||
} | ||
} | ||
} | ||
], | ||
"position": { | ||
"start": { | ||
"line": 1, | ||
"column": 13, | ||
"offset": 12 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 14, | ||
"offset": 13 | ||
} | ||
} | ||
} | ||
], | ||
"position": { | ||
"start": { | ||
"line": 1, | ||
"column": 1, | ||
"offset": 0 | ||
}, | ||
"end": { | ||
"line": 1, | ||
"column": 18, | ||
"offset": 17 | ||
} | ||
} | ||
} |