diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-06-17 14:33:28 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2021-06-17 14:33:28 +0000 |
| commit | 9786b2ca604363749f2b34211e128dffe941f8df (patch) | |
| tree | 23d437db77b2b67bdc902f7f141e2032dd96c12e /docutils/test | |
| parent | 923eb307ae1df975aa67a7e0a5a12eeec20b9109 (diff) | |
| download | docutils-9786b2ca604363749f2b34211e128dffe941f8df.tar.gz | |
Insert "meta" nodes at begin of document.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8767 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test')
5 files changed, 11 insertions, 11 deletions
diff --git a/docutils/test/functional/expected/standalone_rst_docutils_xml.xml b/docutils/test/functional/expected/standalone_rst_docutils_xml.xml index 6e1177d23..71c96a29d 100644 --- a/docutils/test/functional/expected/standalone_rst_docutils_xml.xml +++ b/docutils/test/functional/expected/standalone_rst_docutils_xml.xml @@ -4,6 +4,10 @@ <document ids="restructuredtext-test-document doctitle" names="restructuredtext\ test\ document doctitle" source="functional/input/standalone_rst_docutils_xml.txt" title="reStructuredText Test Document"> <title>reStructuredText Test Document</title> <subtitle ids="examples-of-syntax-constructs subtitle" names="examples\ of\ syntax\ constructs subtitle">Examples of Syntax Constructs</subtitle> + <meta content="reStructuredText, test, parser" name="keywords"> + </meta> + <meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description"> + </meta> <decoration> <header> <paragraph>Document header</paragraph> @@ -1365,10 +1369,6 @@ footnotes <footnote_reference ids="footnote-reference-9" refid="footnote-1">1</f <title auto="1" refid="toc-entry-53"><generated classes="sectnum">2.14.11 </generated>Meta</title> <paragraph>The <reference anonymous="1" name="“meta” directive" refuri="https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata">“meta” directive</reference> <footnote_reference auto="1" ids="footnote-reference-17" refid="footnote-10">9</footnote_reference> is used to specify metadata to be stored in, e.g., HTML META tags or ODT file properties.</paragraph> - <meta content="reStructuredText, test, parser" name="keywords"> - </meta> - <meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description"> - </meta> <target anonymous="1" ids="target-6" refuri="https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata"></target> </section> </section> diff --git a/docutils/test/functional/expected/standalone_rst_html4css1.html b/docutils/test/functional/expected/standalone_rst_html4css1.html index d74c3a16a..28b49de4d 100644 --- a/docutils/test/functional/expected/standalone_rst_html4css1.html +++ b/docutils/test/functional/expected/standalone_rst_html4css1.html @@ -5,13 +5,13 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" /> <title>reStructuredText Test Document</title> +<meta content="reStructuredText, test, parser" name="keywords" /> +<meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description" /> <meta name="author" content="David Goodger" /> <meta name="authors" content="Me Myself I" /> <meta name="organization" content="humankind" /> <meta name="date" content="Now, or yesterday. Or maybe even before yesterday." /> <meta name="copyright" content="This document has been placed in the public domain. You may do with it as you wish. You may copy, modify, redistribute, reattribute, sell, buy, rent, lease, destroy, or improve it, quote it at length, excerpt, incorporate, collate, fold, staple, or mutilate it, or do anything else to it that your or anyone else's heart desires." /> -<meta content="reStructuredText, test, parser" name="keywords" /> -<meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description" /> <link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" /> <link rel="stylesheet" href="../input/data/math.css" type="text/css" /> </head> diff --git a/docutils/test/functional/expected/standalone_rst_html5.html b/docutils/test/functional/expected/standalone_rst_html5.html index a3d5e2716..54255a2e2 100644 --- a/docutils/test/functional/expected/standalone_rst_html5.html +++ b/docutils/test/functional/expected/standalone_rst_html5.html @@ -5,14 +5,14 @@ <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" /> <title>reStructuredText Test Document</title> +<meta content="reStructuredText, test, parser" name="keywords" /> +<meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description" xml:lang="en" /> <meta name="author" content="David Goodger" /> <meta name="author" content="Me" /> <meta name="author" content="Myself" /> <meta name="author" content="I" /> <meta name="dcterms.date" content="Now, or yesterday. Or maybe even before yesterday." /> <meta name="dcterms.rights" content="This document has been placed in the public domain. You may do with it as you wish. You may copy, modify, redistribute, reattribute, sell, buy, rent, lease, destroy, or improve it, quote it at length, excerpt, incorporate, collate, fold, staple, or mutilate it, or do anything else to it that your or anyone else's heart desires." /> -<meta content="reStructuredText, test, parser" name="keywords" /> -<meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description" xml:lang="en" /> <link rel="schema.dcterms" href="http://purl.org/dc/terms/"/> <link rel="stylesheet" href="../input/data/minimal.css" type="text/css" /> <link rel="stylesheet" href="../input/data/plain.css" type="text/css" /> diff --git a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt index d125af833..f0df1b4f0 100644 --- a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt +++ b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt @@ -3,6 +3,8 @@ reStructuredText Test Document <subtitle ids="examples-of-syntax-constructs subtitle" names="examples\ of\ syntax\ constructs subtitle"> Examples of Syntax Constructs + <meta content="reStructuredText, test, parser" name="keywords"> + <meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description"> <decoration> <header> <paragraph> @@ -1995,8 +1997,6 @@ 9 is used to specify metadata to be stored in, e.g., HTML META tags or ODT file properties. - <meta content="reStructuredText, test, parser" name="keywords"> - <meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description"> <target anonymous="1" ids="target-6" refuri="https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata"> <section ids="substitution-definitions" names="substitution\ definitions"> <title auto="1" refid="toc-entry-34"> diff --git a/docutils/test/test_parsers/test_rst/test_directives/test_meta.py b/docutils/test/test_parsers/test_rst/test_directives/test_meta.py index 082d5860d..90899e35b 100755 --- a/docutils/test/test_parsers/test_rst/test_directives/test_meta.py +++ b/docutils/test/test_parsers/test_rst/test_directives/test_meta.py @@ -67,9 +67,9 @@ Paragraph """, """\ <document source="test data"> + <meta content="content" name="name"> <paragraph> Paragraph - <meta content="content" name="name"> """], ["""\ .. meta:: |
