From 4e902b1d601c57f19eb9b7e0a51a4420a45aea59 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Thu, 31 Oct 2019 22:01:12 +0100 Subject: [PATCH] Jira writer: remove extraneous newline after single-line block quotes See #5858 --- src/Text/Pandoc/Writers/Jira.hs | 2 +- test/writer.jira | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Text/Pandoc/Writers/Jira.hs b/src/Text/Pandoc/Writers/Jira.hs index 79f63e229..b610dd8bf 100644 --- a/src/Text/Pandoc/Writers/Jira.hs +++ b/src/Text/Pandoc/Writers/Jira.hs @@ -152,7 +152,7 @@ blockToJira _ (CodeBlock attr@(_,classes,_) str) = do blockToJira opts (BlockQuote [p@(Para _)]) = do contents <- blockToJira opts p - appendNewlineUnlessInList ("bq. " <> contents) + return ("bq. " <> contents) blockToJira opts (BlockQuote blocks) = do contents <- blockListToJira opts blocks diff --git a/test/writer.jira b/test/writer.jira index 16e1fcab8..e3068251c 100644 --- a/test/writer.jira +++ b/test/writer.jira @@ -45,7 +45,6 @@ E‐mail style: bq. This is a block quote. It is pretty short. - {quote} Code in a block quote: @@ -64,10 +63,8 @@ Nested block quotes: bq. nested - bq. nested - {quote} This should not be a block quote: 2 > 1. @@ -576,7 +573,6 @@ An e‐mail address: [nobody@nowhere.net|mailto:nobody@nowhere.net] bq. Blockquoted: [http://example.com/|http://example.com/] - Auto‐links should not occur here: {{}} {code} @@ -601,7 +597,6 @@ Here is a footnote reference,[1] and another.[2] This should _not_ be a footnote bq. Notes can go in quotes.[4] - # And in list items.[5] This paragraph should not be part of the note, as it is not indented.