diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2019-10-31 22:01:12 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2019-10-31 22:01:12 +0100 |
commit | 4e902b1d601c57f19eb9b7e0a51a4420a45aea59 (patch) | |
tree | 3ed9ce00ae598dbf8408c21271211e9431771096 | |
parent | 4f1224dc0bfc4a5ca02467dc9a37c388277002a3 (diff) | |
download | pandoc-4e902b1d601c57f19eb9b7e0a51a4420a45aea59.tar.gz |
Jira writer: remove extraneous newline after single-line block quotes
See #5858
-rw-r--r-- | src/Text/Pandoc/Writers/Jira.hs | 2 | ||||
-rw-r--r-- | test/writer.jira | 5 |
2 files changed, 1 insertions, 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: {{<http://example.com/>}} {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. |