Skip to content

Commit

Permalink
Org writer: omit extra blank line at end of quote block.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Feb 19, 2024
1 parent 8a0e522 commit a6d85a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Writers/Org.hs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ blockToOrg (CodeBlock (ident,classes,kvs) str) = do
blockToOrg (BlockQuote blocks) = do
contents <- blockListToOrg blocks
return $ blankline $$ "#+begin_quote" $$
contents $$ "#+end_quote" $$ blankline
chomp contents $$ "#+end_quote" $$ blankline
blockToOrg (Table _ blkCapt specs thead tbody tfoot) = do
let (caption', _, _, headers, rows) = toLegacyTable blkCapt specs thead tbody tfoot
caption'' <- inlineListToOrg caption'
Expand Down
7 changes: 0 additions & 7 deletions test/writer.org
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ E-mail style:

#+begin_quote
This is a block quote. It is pretty short.

#+end_quote

#+begin_quote
Expand All @@ -96,14 +95,11 @@ Nested block quotes:

#+begin_quote
nested

#+end_quote

#+begin_quote
nested

#+end_quote

#+end_quote

This should not be a block quote: 2 > 1.
Expand Down Expand Up @@ -345,7 +341,6 @@ Multiple blocks with italics:

#+begin_quote
orange block quote

#+end_quote

Multiple definitions, tight:
Expand Down Expand Up @@ -753,7 +748,6 @@ An e-mail address: [[mailto:nobody@nowhere.net][nobody@nowhere.net]]

#+begin_quote
Blockquoted: [[http://example.com/]]

#+end_quote

Auto-links should not occur here: =<http://example.com/>=
Expand Down Expand Up @@ -787,7 +781,6 @@ note.[fn:3]

#+begin_quote
Notes can go in quotes.[fn:4]

#+end_quote

1. And in list items.[fn:5]
Expand Down

0 comments on commit a6d85a0

Please sign in to comment.