diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-07-09 12:27:41 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-07-09 12:27:41 -0700 |
commit | ae22b1e977cfb1357bb21fabc227e76a6adb0599 (patch) | |
tree | 61c666692c7115a4f693cdee6d0482819b77a4f2 /test | |
parent | 565330033a623ed7bf4d0a3b57dd14710cf27703 (diff) | |
download | pandoc-ae22b1e977cfb1357bb21fabc227e76a6adb0599.tar.gz |
RST reader: fix regression with code includes.
With the recent changes to include infrastructure,
included code blocks were getting an extra newline.
Closes #7436. Added regression test.
Diffstat (limited to 'test')
-rw-r--r-- | test/command/7436.md | 14 | ||||
-rw-r--r-- | test/command/three.txt | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/command/7436.md b/test/command/7436.md new file mode 100644 index 000000000..ad4cb8c2f --- /dev/null +++ b/test/command/7436.md @@ -0,0 +1,14 @@ +``` +% pandoc -f rst -t native +.. include:: command/three.txt + :code: + +.. include:: command/three.txt + :literal: + +.. include:: command/three.txt +^D +[CodeBlock ("",[""],[("code","")]) "1st line.\n2nd line.\n3rd line.\n" +,RawBlock (Format "rst") "1st line.\n2nd line.\n3rd line.\n" +,Para [Str "1st",Space,Str "line.",SoftBreak,Str "2nd",Space,Str "line.",SoftBreak,Str "3rd",Space,Str "line."]] +``` diff --git a/test/command/three.txt b/test/command/three.txt new file mode 100644 index 000000000..3ca3fdd4e --- /dev/null +++ b/test/command/three.txt @@ -0,0 +1,3 @@ +1st line. +2nd line. +3rd line. |