git.iko.soy/typeable/pandoc
on master help sign in
AsciiDoc writer: avoid wrapping after list marker.

Closes #1858.

commitfcf1cd2f319e25fa9e81edcfecf884a559fd9fe3 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 15 Mar 2015, 15:43 (12 years ago) parent4510192
2 files changed+3−3
src/Text/Pandoc/Writers/AsciiDoc.hs+2−2 tests/writer.asciidoc+1−1
src/Text/Pandoc/Writers/AsciiDoc.hs+2−2
@@ -272,7 +272,7 @@ bulletListItemToAsciiDoc opts blocks = do
272272 contents <- foldM addBlock empty blocks
273273 modify $ \s -> s{ bulletListLevel = lev }
274274 let marker = text (replicate lev '*')
275− return $ marker <> space <> contents <> cr
275+ return $ marker <> text " " <> contents <> cr
276276
277277-- | Convert ordered list item (a list of blocks) to asciidoc.
278278orderedListItemToAsciiDoc :: WriterOptions -- ^ options
@@ -292,7 +292,7 @@ orderedListItemToAsciiDoc opts marker blocks = do
292292 modify $ \s -> s{ orderedListLevel = lev + 1 }
293293 contents <- foldM addBlock empty blocks
294294 modify $ \s -> s{ orderedListLevel = lev }
295− return $ text marker <> space <> contents <> cr
295+ return $ text marker <> text " " <> contents <> cr
296296
297297-- | Convert definition list item (label, list of blocks) to asciidoc.
298298definitionListItemToAsciiDoc :: WriterOptions
tests/writer.asciidoc+1−1
@@ -490,7 +490,7 @@ Ellipses…and…and….
490490LaTeX
491491-----
492492
493−*
493+*
494494* latexmath:[$2+2=4$]
495495* latexmath:[$x \in y$]
496496* latexmath:[$\alpha \wedge \omega$]