From 736c2c554f3c93a1c862fea7fd2c90680de3500d Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Sat, 20 Jan 2018 09:38:57 -0500 Subject: Docx reader: small change to Fields hyperlink parser Previously, unquoted string required a space at the end of the line (and consumed it). Now we either take a space (and don't consume it), or end of input. --- src/Text/Pandoc/Readers/Docx/Fields.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/Docx/Fields.hs b/src/Text/Pandoc/Readers/Docx/Fields.hs index f0821a751..aef10ffcf 100644 --- a/src/Text/Pandoc/Readers/Docx/Fields.hs +++ b/src/Text/Pandoc/Readers/Docx/Fields.hs @@ -63,7 +63,7 @@ quotedString = do concat <$> manyTill inQuotes (try (char '"')) unquotedString :: Parser String -unquotedString = manyTill anyChar (try space) +unquotedString = manyTill anyChar (try $ lookAhead space $> () <|> eof) fieldArgument :: Parser String fieldArgument = quotedString <|> unquotedString -- cgit v1.2.3