From 264b0dc92b17bcc66dfca55c60ebdf7f8b744a07 Mon Sep 17 00:00:00 2001 From: Tissevert Date: Fri, 31 May 2019 15:08:54 +0200 Subject: [PATCH] =?UTF-8?q?Stop=20requiring=20=C2=ABtrailer=C2=BB=20keywor?= =?UTF-8?q?ds=20to=20live=20on=20a=20separate=20line=20as=20counter-exampl?= =?UTF-8?q?es=20have=20been=20found?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/PDF/Object.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PDF/Object.hs b/src/PDF/Object.hs index 3788ffc..947ff75 100644 --- a/src/PDF/Object.hs +++ b/src/PDF/Object.hs @@ -319,7 +319,7 @@ structure :: Parser u Structure structure = Structure <$> (line "xref" *> xrefSubSection `sepBy` EOL.parser) - <*> (line "trailer" *> dictionary <* EOL.parser) + <*> (string "trailer" *> blank *> dictionary <* EOL.parser) updateXrefs :: XRefSection -> Map Offset Int -> (XRefSection, Int) updateXrefs xrefSection offsets = (