git.iko.soy/typeable/pandoc
on master help sign in
Org writer: fix operator precedence mistake in previous commit
commitd7f8fbf04b3d58b6b10d1a8db32c3c7e50b614c1 authorAlbert Krewinkel <albert@zeitkraut.de> dateTue 9 Mar 2021, 21:15 (6 years ago) parentb9b2586
1 file changed+2−1
src/Text/Pandoc/Writers/Org.hs+2−1
src/Text/Pandoc/Writers/Org.hs+2−1
@@ -359,7 +359,8 @@ inlineListToOrg lst = hcat <$> mapM inlineToOrg (fixMarkers lst)
359359 shouldFix Note{} = True -- Prevent footnotes
360360 shouldFix (Str "-") = True -- Prevent bullet list items
361361 shouldFix (Str x) -- Prevent ordered list items
362− | Just (cs, c) <- T.unsnoc x = T.all isDigit cs && c == '.' || c == ')'
362+ | Just (cs, c) <- T.unsnoc x = T.all isDigit cs &&
363+ (c == '.' || c == ')')
363364 shouldFix _ = False
364365
365366-- | Convert Pandoc inline element to Org.