aboutsummaryrefslogtreecommitdiff
path: root/tests/docx.metadata_author_linebreak.native
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2014-07-27 15:11:18 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2014-07-29 13:03:01 -0400
commit840108a9c11850089a27a3b5458f8561ab1b6a2e (patch)
treedb96e841d15bec4173db7257dc58b0ef17bdb960 /tests/docx.metadata_author_linebreak.native
parent3eff3782c1cfde8c1cdb4d5461dfb4bf09168e9c (diff)
downloadpandoc-840108a9c11850089a27a3b5458f8561ab1b6a2e.tar.gz
Docx reader: Make metavalues out of styled paragraphs.
This will make paragraphs styled with `Author`, `Title`, `Subtitle`, `Date`, and `Abstract` into pandoc metavalues, rather than text. The implementation only takes those elements from the beginning of the document (ignoring empty paragraphs). Multiple paragraphs in the `Author` style will be made into a metaList, one paragraph per item. Hard linebreaks (shift-return) in the paragraph will be maintained, and can be used for institution, email, etc.
Diffstat (limited to 'tests/docx.metadata_author_linebreak.native')
-rw-r--r--tests/docx.metadata_author_linebreak.native2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/docx.metadata_author_linebreak.native b/tests/docx.metadata_author_linebreak.native
new file mode 100644
index 000000000..ed7ba63cf
--- /dev/null
+++ b/tests/docx.metadata_author_linebreak.native
@@ -0,0 +1,2 @@
+Pandoc (Meta {unMeta = fromList [("abstract",MetaInlines [Str "This",Space,Str "is",Space,Str "a",Space,Str "test",Space,Str "of",Space,Str "how",Space,Str "this",Space,Str "all",Space,Str "works.",Space,Str "I\8217ve",Space,Str "skipped",Space,Str "lines",Space,Str "here,",Space,Str "which",Space,Str "pandoc",Space,Str "doesn\8217t",Space,Str "do,",Space,Str "but",Space,Str "which",Space,Str "shouldn\8217t",Space,Str "make",Space,Str "a",Space,Str "difference."]),("author",MetaList [MetaInlines [Str "Mary",Space,Str "Ann",Space,Str "Evans"],MetaInlines [Str "Aurore",Space,Str "Dupin"]]),("date",MetaInlines [Str "July",Space,Str "28,",Space,Str "2014"]),("title",MetaInlines [Str "This",Space,Str "Is",Space,Str "the",Space,Str "Title"])]})
+[Para [Str "And",Space,Str "now",Space,Str "this",Space,Str "is",Space,Str "normal",Space,Str "text."]]