git.iko.soy/typeable/pandoc
on master help sign in
Org writer: fix operator precedence mistake in previous commit
d7f8fbfAlbert Krewinkel
src/Text/Pandoc/Writers/Org.hs+2−1
@@ -359,7 +359,8 @@ inlineListToOrg lst = hcat <$> mapM inlineToOrg (fixMarkers lst)
359 shouldFix Note{} = True -- Prevent footnotes
359 shouldFix Note{} = True -- Prevent footnotes
360 shouldFix (Str "-") = True -- Prevent bullet list items
360 shouldFix (Str "-") = True -- Prevent bullet list items
361 shouldFix (Str x) -- Prevent ordered list items
361 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 == ')')
363 shouldFix _ = False
364 shouldFix _ = False
364
365
365-- | Convert Pandoc inline element to Org.
366-- | Convert Pandoc inline element to Org.