From a8948520ed95ee0876c3dc070254bb46058d4c76 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Mon, 29 Nov 2021 06:38:09 +0000 Subject: [PATCH] Fixes a bug where the index is case sensitive. Fixes #680. Commit ready for merge. - Legacy-Id: 4077 --- tests/valid/docfile.py36.html | 2 +- tests/valid/docfile.py37.html | 2 +- tests/valid/docfile.py38.html | 2 +- tests/valid/indexes.pages.text | 12 ++++++------ tests/valid/indexes.prepped.xml | 6 +++--- tests/valid/indexes.text | 6 +++--- tests/valid/indexes.v3.py36.html | 8 ++++---- tests/valid/indexes.v3.py37.html | 8 ++++---- tests/valid/indexes.v3.py38.html | 8 ++++---- tests/valid/manpage.txt | 4 ++-- xml2rfc/templates/doc.yaml | 5 +---- xml2rfc/writers/preptool.py | 2 +- 12 files changed, 31 insertions(+), 34 deletions(-) diff --git a/tests/valid/docfile.py36.html b/tests/valid/docfile.py36.html index bc25857a8..9e186e2c7 100644 --- a/tests/valid/docfile.py36.html +++ b/tests/valid/docfile.py36.html @@ -1581,7 +1581,7 @@

Index entries generally refer to the exact place where the <iref> element occurred. An exception is the occurrence as a child element of <section>, in which case the whole section is considered to be relevant for that index entry. In some formats, index entries of this type might be displayed as ranges.

- When the prep tool is creating index content, it collects the items in a case-sensitive fashion for both the item and subitem level.

+ When the prep tool is creating index content, it collects the items in a case-insensitive fashion for both the item and subitem level.

This element can be a child element of <annotation>, <aside>, <blockquote>, <dd>, <dt>, <em>, <figure>, <li>, <name>, <section>, <strong>, <sub>, <sup>, <t>, <table>, <td>, <th>, <tt>, .

Content schema:
diff --git a/tests/valid/docfile.py37.html b/tests/valid/docfile.py37.html index bc25857a8..9e186e2c7 100644 --- a/tests/valid/docfile.py37.html +++ b/tests/valid/docfile.py37.html @@ -1581,7 +1581,7 @@

Index entries generally refer to the exact place where the <iref> element occurred. An exception is the occurrence as a child element of <section>, in which case the whole section is considered to be relevant for that index entry. In some formats, index entries of this type might be displayed as ranges.

- When the prep tool is creating index content, it collects the items in a case-sensitive fashion for both the item and subitem level.

+ When the prep tool is creating index content, it collects the items in a case-insensitive fashion for both the item and subitem level.

This element can be a child element of <annotation>, <aside>, <blockquote>, <dd>, <dt>, <em>, <figure>, <li>, <name>, <section>, <strong>, <sub>, <sup>, <t>, <table>, <td>, <th>, <tt>, .

Content schema:
diff --git a/tests/valid/docfile.py38.html b/tests/valid/docfile.py38.html index bc25857a8..9e186e2c7 100644 --- a/tests/valid/docfile.py38.html +++ b/tests/valid/docfile.py38.html @@ -1581,7 +1581,7 @@

Index entries generally refer to the exact place where the <iref> element occurred. An exception is the occurrence as a child element of <section>, in which case the whole section is considered to be relevant for that index entry. In some formats, index entries of this type might be displayed as ranges.

- When the prep tool is creating index content, it collects the items in a case-sensitive fashion for both the item and subitem level.

+ When the prep tool is creating index content, it collects the items in a case-insensitive fashion for both the item and subitem level.

This element can be a child element of <annotation>, <aside>, <blockquote>, <dd>, <dt>, <em>, <figure>, <li>, <name>, <section>, <strong>, <sub>, <sup>, <t>, <table>, <td>, <th>, <tt>, .

Content schema:
diff --git a/tests/valid/indexes.pages.text b/tests/valid/indexes.pages.text index 6cf477aca..8cbd6ccab 100644 --- a/tests/valid/indexes.pages.text +++ b/tests/valid/indexes.pages.text @@ -3,9 +3,9 @@ Network Working Group H. Person, Ed. -Internet-Draft November 22, 2021 +Internet-Draft November 29, 2021 Intended status: Experimental -Expires: May 26, 2022 +Expires: June 2, 2022 xml2rfc index tests @@ -26,7 +26,7 @@ Status of This Memo time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." - This Internet-Draft will expire on May 26, 2022. + This Internet-Draft will expire on June 2, 2022. Copyright Notice @@ -53,7 +53,7 @@ Table of Contents -Person Expires May 26, 2022 [Page 1] +Person Expires June 2, 2022 [Page 1] Internet-Draft xml2rfc index tests November 2021 @@ -109,7 +109,7 @@ Index -Person Expires May 26, 2022 [Page 2] +Person Expires June 2, 2022 [Page 2] Internet-Draft xml2rfc index tests November 2021 @@ -165,4 +165,4 @@ Author's Address -Person Expires May 26, 2022 [Page 3] +Person Expires June 2, 2022 [Page 3] diff --git a/tests/valid/indexes.prepped.xml b/tests/valid/indexes.prepped.xml index 0604aebb8..fceecf6ae 100644 --- a/tests/valid/indexes.prepped.xml +++ b/tests/valid/indexes.prepped.xml @@ -1,5 +1,5 @@ - + @@ -20,7 +20,7 @@ - +
Status of This Memo @@ -41,7 +41,7 @@ material or to cite them other than as "work in progress." - This Internet-Draft will expire on 26 May 2022. + This Internet-Draft will expire on 2 June 2022.
diff --git a/tests/valid/indexes.text b/tests/valid/indexes.text index b64cc111b..a39adba36 100644 --- a/tests/valid/indexes.text +++ b/tests/valid/indexes.text @@ -3,9 +3,9 @@ Network Working Group H. Person, Ed. -Internet-Draft November 22, 2021 +Internet-Draft November 29, 2021 Intended status: Experimental -Expires: May 26, 2022 +Expires: June 2, 2022 xml2rfc index tests @@ -26,7 +26,7 @@ Status of This Memo time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." - This Internet-Draft will expire on May 26, 2022. + This Internet-Draft will expire on June 2, 2022. Copyright Notice diff --git a/tests/valid/indexes.v3.py36.html b/tests/valid/indexes.v3.py36.html index 3876f8f6d..67ab79c14 100644 --- a/tests/valid/indexes.v3.py36.html +++ b/tests/valid/indexes.v3.py36.html @@ -23,7 +23,7 @@ Person -Expires May 26, 2022 +Expires June 2, 2022 [Page] @@ -36,12 +36,12 @@
indexes-00
Published:
- +
Intended Status:
Experimental
Expires:
-
+
Author:
@@ -71,7 +71,7 @@

time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

- This Internet-Draft will expire on May 26, 2022.

+ This Internet-Draft will expire on June 2, 2022.