git.iko.soy/typeable/pandoc
on master help sign in
Jira writer: remove extraneous newline after single-line block quotes

See #5858

commit4e902b1d601c57f19eb9b7e0a51a4420a45aea59 authorAlbert Krewinkel <albert@zeitkraut.de> dateThu 31 Oct 2019, 22:01 (7 years ago) parent4f1224d
2 files changed+1−6
src/Text/Pandoc/Writers/Jira.hs+1−1 test/writer.jira−5
src/Text/Pandoc/Writers/Jira.hs+1−1
@@ -152,7 +152,7 @@ blockToJira _ (CodeBlock attr@(_,classes,_) str) = do
152152
153153blockToJira opts (BlockQuote [p@(Para _)]) = do
154154 contents <- blockToJira opts p
155− appendNewlineUnlessInList ("bq. " <> contents)
155+ return ("bq. " <> contents)
156156
157157blockToJira opts (BlockQuote blocks) = do
158158 contents <- blockListToJira opts blocks
test/writer.jira−5
@@ -45,7 +45,6 @@ E&hyphen;mail style:
4545
4646bq. This is a block quote. It is pretty short.
4747
48−
4948{quote}
5049Code in a block quote:
5150
@@ -64,10 +63,8 @@ Nested block quotes:
6463
6564bq. nested
6665
67−
6866bq. nested
6967
70−
7168{quote}
7269
7370This 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]
576573
577574bq. Blockquoted: [http://example.com/|http://example.com/]
578575
579−
580576Auto&hyphen;links should not occur here: {{<http://example.com/>}}
581577
582578{code}
@@ -601,7 +597,6 @@ Here is a footnote reference,[1] and another.[2] This should _not_ be a footnote
601597
602598bq. Notes can go in quotes.[4]
603599
604−
605600# And in list items.[5]
606601
607602This paragraph should not be part of the note, as it is not indented.