From e4542c29e217f09aeca5a0ae423fc45c73dee8a2 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Thu, 22 Feb 2024 10:37:01 +1300 Subject: [PATCH] feat: Update subseries presentation (#1102) * feat: Update subseries presentation Fixes #1100 * feat: Insert referencegroup trarget for subseries When referencegroup target is missing, insert the target for BCP, STD and FYI. --- tests/valid/docfile.html | 21 ++++++------- tests/valid/draft-miek-test.html | 8 +++-- tests/valid/draft-template.html | 8 +++-- tests/valid/draft-v3-features.text | 29 +++++++++++------- tests/valid/draft-v3-features.v3.html | 18 ++++++----- tests/valid/indexes.pages.text | 12 ++++---- tests/valid/indexes.prepped.xml | 8 ++--- tests/valid/indexes.text | 6 ++-- tests/valid/indexes.v3.html | 10 +++---- tests/valid/manpage.txt | 25 +++++++++------- tests/valid/rfc7911.html | 8 +++-- tests/valid/sourcecode.pages.text | 14 ++++----- tests/valid/sourcecode.prepped.xml | 8 ++--- tests/valid/sourcecode.text | 6 ++-- tests/valid/sourcecode.v3.html | 10 +++---- xml2rfc/data/xml2rfc.css | 4 +++ xml2rfc/writers/base.py | 7 +++++ xml2rfc/writers/html.py | 36 ++++++++++++++-------- xml2rfc/writers/preptool.py | 19 ++++++++++++ xml2rfc/writers/text.py | 43 +++++++++++++++++++-------- 20 files changed, 195 insertions(+), 105 deletions(-) diff --git a/tests/valid/docfile.html b/tests/valid/docfile.html index a2352823..7c11c246 100644 --- a/tests/valid/docfile.html +++ b/tests/valid/docfile.html @@ -4,15 +4,15 @@ -Xml2rfc Vocabulary Version 3 Schema xml2rfc release 3.19.3 +Xml2rfc Vocabulary Version 3 Schema xml2rfc release 3.19.4 - - + + @@ -39,7 +39,7 @@
xml2rfc(1)
Published:
- +
Author:
@@ -49,7 +49,7 @@
-

Xml2rfc Vocabulary Version 3 Schema
xml2rfc release 3.19.3

+

Xml2rfc Vocabulary Version 3 Schema
xml2rfc release 3.19.4

Abstract

@@ -371,7 +371,7 @@

The latest version of this documentation is available in HTML form at https://ietf-tools.github.io/xml2rfc/.

- This documentation applies to xml2rfc version 3.19.3.

+ This documentation applies to xml2rfc version 3.19.4.

@@ -4225,11 +4225,12 @@

[BCP14]
+
Best Current Practice 14, <https://www.rfc-editor.org/bcp/bcp14.txt>.
At the time of writing, this BCP comprises the following: +
- Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, .
+ Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
- Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, .
-<https://www.rfc-editor.org/bcp/bcp14.txt> + Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
[IDGUIDE]
@@ -6366,7 +6367,7 @@

The following variables are available for use in an xml2rfc - manpage Jinja2 template, as of xml2rfc version 3.19.3:

+ manpage Jinja2 template, as of xml2rfc version 3.19.4:

{{ bare_latin_tags }}:
diff --git a/tests/valid/draft-miek-test.html b/tests/valid/draft-miek-test.html index 13c9d22f..8b7cf845 100644 --- a/tests/valid/draft-miek-test.html +++ b/tests/valid/draft-miek-test.html @@ -16,7 +16,7 @@ This version is adapted to work with "xml2rfc" version 2.x. ' name="description"> - + @@ -26,7 +26,7 @@ + + @@ -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 9 August 2024. + This Internet-Draft will expire on 22 August 2024.
diff --git a/tests/valid/indexes.text b/tests/valid/indexes.text index e7cbe1f8..b65c29ad 100644 --- a/tests/valid/indexes.text +++ b/tests/valid/indexes.text @@ -3,9 +3,9 @@ Network Working Group H. Person, Ed. -Internet-Draft February 6, 2024 +Internet-Draft February 19, 2024 Intended status: Experimental -Expires: August 9, 2024 +Expires: August 22, 2024 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 August 9, 2024. + This Internet-Draft will expire on August 22, 2024. Copyright Notice diff --git a/tests/valid/indexes.v3.html b/tests/valid/indexes.v3.html index 7d897a6c..143aee7d 100644 --- a/tests/valid/indexes.v3.html +++ b/tests/valid/indexes.v3.html @@ -6,7 +6,7 @@ xml2rfc index tests - + @@ -23,7 +23,7 @@ Person -Expires August 9, 2024 +Expires August 22, 2024 [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 August 9, 2024.

+ This Internet-Draft will expire on August 22, 2024.