summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2023-04-16 20:46:39 +0000
committergrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2023-04-16 20:46:39 +0000
commit93bbf92b92034c1ebb04fba09f5dc8306ecdd121 (patch)
treef1346ef76236d4afd54d97eb26de067058f03281
parentc697585713a5f05f597c375028904eb18afe65b0 (diff)
downloaddocutils-93bbf92b92034c1ebb04fba09f5dc8306ecdd121.tar.gz
Fix message for nonconforming docinfo-Authors.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9350 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--docutils/HISTORY.txt4
-rwxr-xr-xdocutils/test/test_transforms/test_docinfo.py8
2 files changed, 8 insertions, 4 deletions
diff --git a/docutils/HISTORY.txt b/docutils/HISTORY.txt
index 6093e3710..e3bd4f161 100644
--- a/docutils/HISTORY.txt
+++ b/docutils/HISTORY.txt
@@ -157,6 +157,10 @@ Release 0.20 (unpublished)
- Fix regex to match multiline message "requires ... recommonmark"
+* test/test_transforms/test_docinfo.py
+
+ - Fix message for nonconforming docinfo-Authors.
+
* tools/
- Moved ``quicktest.py`` to ``tools/dev/``.
diff --git a/docutils/test/test_transforms/test_docinfo.py b/docutils/test/test_transforms/test_docinfo.py
index b1e4f2efc..b925518fb 100755
--- a/docutils/test/test_transforms/test_docinfo.py
+++ b/docutils/test/test_transforms/test_docinfo.py
@@ -358,7 +358,7 @@ totest['bibliographic_field_lists'] = ((DocInfo,), [
Shaw
<system_message level="2" line="3" source="test data" type="WARNING">
<paragraph>
- Bibliographic field "Authors" incompatible with extraction: it must contain either a single paragraph (with authors separated by one of ";,"), multiple paragraphs (one per author), or a bullet list with one paragraph (one author) per item.
+ Bibliographic field "Authors" incompatible with extraction: it must contain either a single paragraph (with authors separated by one of ";,"), multiple paragraphs (one per author), or a bullet list with one paragraph (one author) per item. Remember that leading initials can cause (mis)recognizing names as enumerated lists.
<field classes="authors">
<field_name>
Authors
@@ -368,7 +368,7 @@ totest['bibliographic_field_lists'] = ((DocInfo,), [
<list_item>
<system_message level="2" line="6" source="test data" type="WARNING">
<paragraph>
- Bibliographic field "Authors" incompatible with extraction: it must contain either a single paragraph (with authors separated by one of ";,"), multiple paragraphs (one per author), or a bullet list with one paragraph (one author) per item.
+ Bibliographic field "Authors" incompatible with extraction: it must contain either a single paragraph (with authors separated by one of ";,"), multiple paragraphs (one per author), or a bullet list with one paragraph (one author) per item. Remember that leading initials can cause (mis)recognizing names as enumerated lists.
<field classes="authors">
<field_name>
Authors
@@ -381,7 +381,7 @@ totest['bibliographic_field_lists'] = ((DocInfo,), [
Two
<system_message level="2" line="10" source="test data" type="WARNING">
<paragraph>
- Bibliographic field "Authors" incompatible with extraction: it must contain either a single paragraph (with authors separated by one of ";,"), multiple paragraphs (one per author), or a bullet list with one paragraph (one author) per item.
+ Bibliographic field "Authors" incompatible with extraction: it must contain either a single paragraph (with authors separated by one of ";,"), multiple paragraphs (one per author), or a bullet list with one paragraph (one author) per item. Remember that leading initials can cause (mis)recognizing names as enumerated lists.
<field classes="authors">
<field_name>
Authors
@@ -394,7 +394,7 @@ totest['bibliographic_field_lists'] = ((DocInfo,), [
Two
<system_message level="2" line="15" source="test data" type="WARNING">
<paragraph>
- Bibliographic field "Authors" incompatible with extraction: it must contain either a single paragraph (with authors separated by one of ";,"), multiple paragraphs (one per author), or a bullet list with one paragraph (one author) per item.
+ Bibliographic field "Authors" incompatible with extraction: it must contain either a single paragraph (with authors separated by one of ";,"), multiple paragraphs (one per author), or a bullet list with one paragraph (one author) per item. Remember that leading initials can cause (mis)recognizing names as enumerated lists.
"""],
["""\
.. RCS keyword extraction.