diff options
-rw-r--r-- | src/Text/Pandoc/Readers/Docx/Fields.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |