aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-05-20 18:45:39 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-05-20 18:45:39 -0700
commit07d299d353761a7c29aa7e7a51371ad7842ec767 (patch)
treef4c011833d6a4f4b6faa1835bcdebb66d1e928a8 /test
parent3a1988b6b2c08fa8a23ae5b6ce355b9b4e0f3dbe (diff)
downloadpandoc-07d299d353761a7c29aa7e7a51371ad7842ec767.tar.gz
DocBook reader: ensure that first and last names are separated.
Closes #6541.
Diffstat (limited to 'test')
-rw-r--r--test/command/6541.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/command/6541.md b/test/command/6541.md
new file mode 100644
index 000000000..956340d4c
--- /dev/null
+++ b/test/command/6541.md
@@ -0,0 +1,27 @@
+```
+% pandoc -f docbook -t markdown -s
+<?xml version="1.0"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<book>
+
+<bookinfo>
+<title>Title</title>
+<author>
+<firstname>Firstname</firstname><surname>Lastname</surname>
+</author>
+<releaseinfo>1.17</releaseinfo>
+</bookinfo>
+
+<para>Text.</para>
+
+</book>
+^D
+---
+author: Firstname Lastname
+releaseinfo: 1.17
+title: Title
+---
+
+Text.
+```