aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorsilby <[email protected]>2025-01-15 12:07:26 -0800
committerGitHub <[email protected]>2025-01-15 12:07:26 -0800
commit806dcb08498fd04e23ecec1ec89ecd0d8005fcd0 (patch)
tree858ac85298af05d7b19c8ac055c4d3d518347333 /src/Text
parent2b6554c475e6e6e500b8cbb39c90b28cc122c423 (diff)
Consume blanks after =encoding in pod reader (#10544)
The reader did not properly consume empty lines after =encoding commands, which produced various incorrect parses depending on the content between there and the next command. Fixes #10537
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Pod.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Pod.hs b/src/Text/Pandoc/Readers/Pod.hs
index 544d7f3ae..4f4529eba 100644
--- a/src/Text/Pandoc/Readers/Pod.hs
+++ b/src/Text/Pandoc/Readers/Pod.hs
@@ -112,6 +112,7 @@ encoding :: PandocMonad m => PodParser m Blocks
encoding = do
cmd "encoding"
anyLine
+ optional blanklines
logMessage $ IgnoredElement "=encoding; Pandoc requires UTF-8 input"
return mempty