Smart punctuation: don't alllow ellipses containing spaces.
Previously we allowed '. . .', ' . . . ', etc. This caused too many complications, and removed author's flexibility in combining ellipses with spaces and periods.
This commit is contained in:
parent
50ca61ef49
commit
ace3b80f1e
2 changed files with 2 additions and 2 deletions
|
@ -755,7 +755,7 @@ doubleQuoteEnd :: GenParser Char st ()
|
|||
doubleQuoteEnd = oneOf "\"\8221" >> return ()
|
||||
|
||||
ellipses :: GenParser Char st Inline
|
||||
ellipses = oneOfStrings ["...", " . . . ", ". . .", " . . ."] >> return Ellipses
|
||||
ellipses = try $ string "..." >> return Ellipses
|
||||
|
||||
dash :: GenParser Char st Inline
|
||||
dash = enDash <|> emDash
|
||||
|
|
|
@ -496,7 +496,7 @@ Some dashes: one---two --- three--four -- five.
|
|||
|
||||
Dashes between numbers: 5-7, 255-66, 1987-1999.
|
||||
|
||||
Ellipses...and. . .and . . . .
|
||||
Ellipses...and...and....
|
||||
|
||||
-----
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue