git.iko.soy/typeable/pandoc
on master help sign in
Jira writer: remove extraneous newline after single-line block quotes
4e902b1Albert Krewinkel
src/Text/Pandoc/Writers/Jira.hs+1−1
@@ -152,7 +152,7 @@ blockToJira _ (CodeBlock attr@(_,classes,_) str) = do
152
152
153blockToJira opts (BlockQuote [p@(Para _)]) = do
153blockToJira opts (BlockQuote [p@(Para _)]) = do
154 contents <- blockToJira opts p
154 contents <- blockToJira opts p
155− appendNewlineUnlessInList ("bq. " <> contents)
155+ return ("bq. " <> contents)
156
156
157blockToJira opts (BlockQuote blocks) = do
157blockToJira opts (BlockQuote blocks) = do
158 contents <- blockListToJira opts blocks
158 contents <- blockListToJira opts blocks
test/writer.jira−5
@@ -45,7 +45,6 @@ E&hyphen;mail style:
45
45
46bq. This is a block quote. It is pretty short.
46bq. This is a block quote. It is pretty short.
47
47
48−
49{quote}
48{quote}
50Code in a block quote:
49Code in a block quote:
51
50
@@ -64,10 +63,8 @@ Nested block quotes:
64
63
65bq. nested
64bq. nested
66
65
67−
68bq. nested
66bq. nested
69
67
70−
71{quote}
68{quote}
72
69
73This should not be a block quote: 2 &gt; 1.
70This should not be a block quote: 2 &gt; 1.
@@ -576,7 +573,6 @@ An e&hyphen;mail address: [nobody&commat;nowhere.net|mailto:nobody@nowhere.net]
576
573
577bq. Blockquoted: [http://example.com/|http://example.com/]
574bq. Blockquoted: [http://example.com/|http://example.com/]
578
575
579−
580Auto&hyphen;links should not occur here: {{<http://example.com/>}}
576Auto&hyphen;links should not occur here: {{<http://example.com/>}}
581
577
582{code}
578{code}
@@ -601,7 +597,6 @@ Here is a footnote reference,[1] and another.[2] This should _not_ be a footnote
601
597
602bq. Notes can go in quotes.[4]
598bq. Notes can go in quotes.[4]
603
599
604−
605# And in list items.[5]
600# And in list items.[5]
606
601
607This paragraph should not be part of the note, as it is not indented.
602This paragraph should not be part of the note, as it is not indented.