From 20e4111fbf91ebb59ef887815dcdfbcf78dcf6d4 Mon Sep 17 00:00:00 2001 From: wiemann Date: Thu, 26 May 2005 00:44:13 +0000 Subject: added support and test for section subtitles git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3367 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- .../test/functional/expected/standalone_rst_html4css1.html | 13 +++++++------ docutils/test/functional/expected/standalone_rst_latex.tex | 2 ++ .../test/functional/expected/standalone_rst_pseudoxml.txt | 12 +++++++----- docutils/test/functional/input/data/standard.txt | 2 ++ 4 files changed, 18 insertions(+), 11 deletions(-) (limited to 'docutils/test') diff --git a/docutils/test/functional/expected/standalone_rst_html4css1.html b/docutils/test/functional/expected/standalone_rst_html4css1.html index b2c113964..3666d6e18 100644 --- a/docutils/test/functional/expected/standalone_rst_html4css1.html +++ b/docutils/test/functional/expected/standalone_rst_html4css1.html @@ -140,7 +140,8 @@ They are transformed from section titles after parsing. -->

1   Structural Elements

-

1.1   Section Title

+

1.1   Section Title

+

Section Subtitle

That's it, the text just above this line.

@@ -924,19 +925,19 @@ section, "Docutils System Messages":

Docutils System Messages

-

System Message: ERROR/3 (functional/input/data/standard.txt, line 98); backlink

+

System Message: ERROR/3 (functional/input/data/standard.txt, line 100); backlink

Undefined substitution referenced: "problematic".
-

System Message: ERROR/3 (functional/input/standalone_rst_html4css1.txt, line 352); backlink

+

System Message: ERROR/3 (functional/input/standalone_rst_html4css1.txt, line 354); backlink

Unknown target name: "5".
-

System Message: ERROR/3 (functional/input/data/standard.txt, line 361); backlink

+

System Message: ERROR/3 (functional/input/data/standard.txt, line 363); backlink

Unknown target name: "nonexistent".
-

System Message: ERROR/3 (functional/input/data/standard.txt, line 388); backlink

+

System Message: ERROR/3 (functional/input/data/standard.txt, line 390); backlink

Unknown target name: "hyperlink reference without a target".
-

System Message: ERROR/3 (functional/input/data/standard.txt, line 401); backlink

+

System Message: ERROR/3 (functional/input/data/standard.txt, line 403); backlink

Duplicate target name, cannot be used as a unique reference: "duplicate target names".
diff --git a/docutils/test/functional/expected/standalone_rst_latex.tex b/docutils/test/functional/expected/standalone_rst_latex.tex index f618b05c5..ec682aa52 100644 --- a/docutils/test/functional/expected/standalone_rst_latex.tex +++ b/docutils/test/functional/expected/standalone_rst_latex.tex @@ -238,7 +238,9 @@ reStructuredText construct. \hypertarget{section-title}{} \pdfbookmark[1]{1.1~~~Section Title}{section-title} \subsection*{1.1~~~Section Title} +\textbf{Section Subtitle}\vspace{0.2cm} +\noindent That's it, the text just above this line. diff --git a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt index 38167aa22..1c21abc9a 100644 --- a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt +++ b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt @@ -326,6 +326,8 @@ 1.1    Section Title + + Section Subtitle That's it, the text just above this line.
@@ -1707,18 +1709,18 @@
Docutils System Messages - <system_message backrefs="id20" ids="id19" level="3" line="98" source="functional/input/data/standard.txt" type="ERROR"> + <system_message backrefs="id20" ids="id19" level="3" line="100" source="functional/input/data/standard.txt" type="ERROR"> <paragraph> Undefined substitution referenced: "problematic". - <system_message backrefs="id70" ids="id69" level="3" line="352" source="functional/input/standalone_rst_html4css1.txt" type="ERROR"> + <system_message backrefs="id70" ids="id69" level="3" line="354" source="functional/input/standalone_rst_html4css1.txt" type="ERROR"> <paragraph> Unknown target name: "5". - <system_message backrefs="id72" ids="id71" level="3" line="361" source="functional/input/data/standard.txt" type="ERROR"> + <system_message backrefs="id72" ids="id71" level="3" line="363" source="functional/input/data/standard.txt" type="ERROR"> <paragraph> Unknown target name: "nonexistent". - <system_message backrefs="id74" ids="id73" level="3" line="388" source="functional/input/data/standard.txt" type="ERROR"> + <system_message backrefs="id74" ids="id73" level="3" line="390" source="functional/input/data/standard.txt" type="ERROR"> <paragraph> Unknown target name: "hyperlink reference without a target". - <system_message backrefs="id76" ids="id75" level="3" line="401" source="functional/input/data/standard.txt" type="ERROR"> + <system_message backrefs="id76" ids="id75" level="3" line="403" source="functional/input/data/standard.txt" type="ERROR"> <paragraph> Duplicate target name, cannot be used as a unique reference: "duplicate target names". diff --git a/docutils/test/functional/input/data/standard.txt b/docutils/test/functional/input/data/standard.txt index 2759d88e0..a4a75b078 100644 --- a/docutils/test/functional/input/data/standard.txt +++ b/docutils/test/functional/input/data/standard.txt @@ -65,6 +65,8 @@ Structural Elements Section Title ------------- +Section Subtitle +```````````````` That's it, the text just above this line. -- cgit v1.2.1