Skip to content

Commit

Permalink
fix(Automattic#230): ParBreak to ParBreak, not two Newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
grantlemons committed Dec 4, 2024
1 parent fa322fb commit 8fb7707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion harper-core/src/parsers/typst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fn map_token(
Expr::Text(text) => parse_english(text.get(), parser, offset),
Expr::Space(a) => constant_token!(offset, doc, a, TokenKind::Space(1)),
Expr::Linebreak(a) => constant_token!(offset, doc, a, TokenKind::Newline(1)),
Expr::Parbreak(a) => constant_token!(offset, doc, a, TokenKind::Newline(2)),
Expr::Parbreak(a) => constant_token!(offset, doc, a, TokenKind::ParagraphBreak),
Expr::Escape(a) => constant_token!(offset, doc, a, TokenKind::Unlintable),
Expr::Shorthand(a) => constant_token!(offset, doc, a, TokenKind::Unlintable),
Expr::SmartQuote(quote) => {
Expand Down

0 comments on commit 8fb7707

Please sign in to comment.