Small bug fix to last change, and count "'S" as well as "'s" as
possessive when followed by non-alphanumeric. git-svn-id: https://pandoc.googlecode.com/svn/trunk@499 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
2c64e7947b
commit
a7839a18a7
1 changed files with 1 additions and 1 deletions
|
@ -778,7 +778,7 @@ singleQuoteStart = try $ do
|
|||
failIfInQuoteContext InSingleQuote
|
||||
char '\'' <|> char '\8216'
|
||||
notFollowedBy (oneOf ")!],.;:-? \t\n")
|
||||
notFollowedBy (do{char 's'; satisfy (not . isAlphaNum)})
|
||||
notFollowedBy (try (do{oneOf "sS"; satisfy (not . isAlphaNum)}))
|
||||
|
||||
singleQuoteEnd = try $ do
|
||||
char '\'' <|> char '\8217'
|
||||
|
|
Loading…
Add table
Reference in a new issue