From c0c7f8377ddbb528f45573505627ce9d66d6d88f Mon Sep 17 00:00:00 2001 From: Ophir Lifshitz Date: Wed, 15 Jul 2015 19:11:01 -0400 Subject: Reference Docx: Correct outlineLvl for Header styles Not sure if this actually affects anything --- data/docx/word/styles.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/docx/word/styles.xml b/data/docx/word/styles.xml index 347e7ff07..2d0052bf8 100644 --- a/data/docx/word/styles.xml +++ b/data/docx/word/styles.xml @@ -176,7 +176,7 @@ - + @@ -198,7 +198,7 @@ - + @@ -220,7 +220,7 @@ - + -- cgit v1.2.3 From cfa68c689f03fad5d52f672c5d0b2c70b3e0d484 Mon Sep 17 00:00:00 2001 From: Ophir Lifshitz Date: Wed, 15 Jul 2015 19:12:56 -0400 Subject: Reference Docx: Add missing Header 6 style (steel blue) Based on Header 4 (bold, steel blue) and Header 5 (italic, steel blue) --- data/docx/word/styles.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/data/docx/word/styles.xml b/data/docx/word/styles.xml index 2d0052bf8..d19c4c7fb 100644 --- a/data/docx/word/styles.xml +++ b/data/docx/word/styles.xml @@ -231,6 +231,26 @@ + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3 From 126d6f58df93cd47794f40fd73963493aacae204 Mon Sep 17 00:00:00 2001 From: Ophir Lifshitz Date: Wed, 15 Jul 2015 19:52:05 -0400 Subject: Docx Reader: Updated headers test Replaced styles.xml in headers.docx with pandoc's current styles.xml, which contains styles for Heading 1 through 6. Added Heading 4 through 7 to the test document. Note that Heading 7 is not parsed as a Heading because there is no Heading 7 style. --- tests/docx/headers.docx | Bin 30298 -> 29659 bytes tests/docx/headers.native | 10 +++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/docx/headers.docx b/tests/docx/headers.docx index 630b6bfc5..e1fbbcc75 100644 Binary files a/tests/docx/headers.docx and b/tests/docx/headers.docx differ diff --git a/tests/docx/headers.native b/tests/docx/headers.native index 03f967728..5d0065239 100644 --- a/tests/docx/headers.native +++ b/tests/docx/headers.native @@ -2,4 +2,12 @@ ,Header 2 ("second-level",[],[]) [Str "Second",Space,Str "Level"] ,Para [Str "Some",Space,Str "plain",Space,Str "text."] ,Header 3 ("third-level",[],[]) [Str "Third",Space,Str "level"] -,Para [Str "Some",Space,Str "more",Space,Str "plain",Space,Str "text."]] +,Para [Str "Some",Space,Str "more",Space,Str "plain",Space,Str "text."] +,Header 4 ("fourth-level",[],[]) [Str "Fourth",Space,Str "level"] +,Para [Str "Some",Space,Str "more",Space,Str "plain",Space,Str "text."] +,Header 5 ("fifth-level",[],[]) [Str "Fifth",Space,Str "level"] +,Para [Str "Some",Space,Str "more",Space,Str "plain",Space,Str "text."] +,Header 6 ("sixth-level",[],[]) [Str "Sixth",Space,Str "level"] +,Para [Str "Some",Space,Str "more",Space,Str "plain",Space,Str "text."] +,Para [Str "Seventh",Space,Str "level"] +,Para [Str "Since",Space,Str "no",Space,Str "Heading",Space,Str "7",Space,Str "style",Space,Str "exists",Space,Str "in",Space,Str "styles.xml,",Space,Str "this",Space,Str "gets",Space,Str "converted",Space,Str "to",Space,Str "Span."]] -- cgit v1.2.3