diff options
| author | Brian Leung <bkleung89@gmail.com> | 2019-01-10 07:19:26 +0100 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2019-01-09 22:19:26 -0800 |
| commit | 35971495abbc15342f0035040f964ed4dd3b0c5d (patch) | |
| tree | adbe19d99871c61399ba2de708e0b87fe3ecf374 /test/command | |
| parent | 483012552aa4ac8fccd733f81110dcebcf1afdd4 (diff) | |
| download | pandoc-35971495abbc15342f0035040f964ed4dd3b0c5d.tar.gz | |
RST reader: change treatment of `number-lines` directives. (#5207)
Directives of this type without numeric inputs should not have a
`startFrom` attribute; with a blank value, the writers can produce
extra whitespace.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/5182.md | 6 | ||||
| -rw-r--r-- | test/command/5182.txt | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/command/5182.md b/test/command/5182.md new file mode 100644 index 000000000..dc30a12ce --- /dev/null +++ b/test/command/5182.md @@ -0,0 +1,6 @@ +``` +pandoc -f rst -t native +.. include:: command/5182.txt +^D +[CodeBlock ("",["python","numberLines"],[]) "def func(x):\n return y"] +``` diff --git a/test/command/5182.txt b/test/command/5182.txt new file mode 100644 index 000000000..f1580ef0e --- /dev/null +++ b/test/command/5182.txt @@ -0,0 +1,5 @@ +.. code::python + :number-lines: + + def func(x): + return y |
