file "marked-wrap.txt"
+ NOTE: '\' line wrapping per RFC 8792
+
+ marked folded line \
+ continues here
+
+
+ A quoted header without folded content is not copyable:
+
+ NOTE: '\' line wrapping per RFC 8792
+ This block mentions the header but does not use RFC 8792 folding.
+
+3. References
[ref0] Author, R. Q., "Reference". This is a reference not in a
reference group.
@@ -184,6 +218,14 @@ Index
A
+
+
+
+Person Expires November 15, 2026 [Page 4]
+
+Internet-Draft xml2rfc sourcecode tests May 2026
+
+
A
annotation Reference [ref0]
@@ -221,4 +263,18 @@ Author's Address
-Person Expires October 1, 2026 [Page 4]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Person Expires November 15, 2026 [Page 5]
diff --git a/tests/valid/sourcecode.prepped.xml b/tests/valid/sourcecode.prepped.xml
index 86e2eefc..d8e0ffd4 100644
--- a/tests/valid/sourcecode.prepped.xml
+++ b/tests/valid/sourcecode.prepped.xml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -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 1 October 2026.
+ This Internet-Draft will expire on 15 November 2026.
@@ -68,13 +68,16 @@
. Less than 50 lines
- . References
+ . RFC 8792 wrapping
- Index
+ . References
- Author's Address
+ Index
+
+
+ Author's Address
@@ -183,11 +186,40 @@ print("47")
print("48")
print("49")
print("50")
+
+
+
+ RFC 8792 wrapping
+ Source code using the single backslash strategy:
+ ========== NOTE: '\' line wrapping per RFC 8792 ===========
+
+first folded line \
+continues here
+second folded line \
+also continues
+
+ Text artwork using the double backslash strategy:
+
+ Source code with renderer-added markers:
+ NOTE: '\' line wrapping per RFC 8792
+
+marked folded line \
+continues here
+
+ A quoted header without folded content is not copyable:
+ NOTE: '\' line wrapping per RFC 8792
+This block mentions the header but does not use RFC 8792 folding.
-
+
References
diff --git a/tests/valid/sourcecode.text b/tests/valid/sourcecode.text
index 47be5a99..5c17c326 100644
--- a/tests/valid/sourcecode.text
+++ b/tests/valid/sourcecode.text
@@ -3,9 +3,9 @@
Network Working Group H. Person, Ed.
-Internet-Draft March 30, 2026
+Internet-Draft May 14, 2026
Intended status: Experimental
-Expires: October 1, 2026
+Expires: November 15, 2026
xml2rfc sourcecode 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 October 1, 2026.
+ This Internet-Draft will expire on November 15, 2026.
Copyright Notice
@@ -42,7 +42,8 @@ Copyright Notice
Table of Contents
1. Less than 50 lines
- 2. References
+ 2. RFC 8792 wrapping
+ 3. References
Index
Author's Address
@@ -149,7 +150,41 @@ Table of Contents
print("49")
print("50")
-2. References
+2. RFC 8792 wrapping
+
+ Source code using the single backslash strategy:
+
+ ========== NOTE: '\' line wrapping per RFC 8792 ===========
+
+ first folded line \
+ continues here
+ second folded line \
+ also continues
+
+ Text artwork using the double backslash strategy:
+
+ [NOTE: '\\' line wrapping per RFC 8792]
+
+ first folded line \
+ \continues here
+ second folded line \
+ \also continues
+
+ Source code with renderer-added markers:
+
+ file "marked-wrap.txt"
+ NOTE: '\' line wrapping per RFC 8792
+
+ marked folded line \
+ continues here
+
+
+ A quoted header without folded content is not copyable:
+
+ NOTE: '\' line wrapping per RFC 8792
+ This block mentions the header but does not use RFC 8792 folding.
+
+3. References
[ref0] Author, R. Q., "Reference". This is a reference not in a
reference group.
diff --git a/tests/valid/sourcecode.v3.html b/tests/valid/sourcecode.v3.html
index 97959b92..00fd8cd1 100644
--- a/tests/valid/sourcecode.v3.html
+++ b/tests/valid/sourcecode.v3.html
@@ -6,7 +6,7 @@
xml2rfc sourcecode tests
-
+
@@ -19,11 +19,11 @@
Internet-Draft
xml2rfc sourcecode tests
-March 2026
+May 2026
Person
-Expires October 1, 2026
+Expires November 15, 2026
[Page]
@@ -36,12 +36,12 @@
sourcecode-00
Published:
-
+
Intended Status:
Experimental
Expires:
-
+
Author:
@@ -101,13 +101,16 @@
-
+
-
+
-
+
+
+
+
@@ -224,8 +227,52 @@
+
+2. RFC 8792 wrapping
+
+Source code using the single backslash strategy:¶
+
+========== NOTE: '\' line wrapping per RFC 8792 ===========
+
+first folded line \
+continues here
+second folded line \
+also continues
+
+¶
+
+Text artwork using the double backslash strategy:¶
+
+[NOTE: '\\' line wrapping per RFC 8792]
+
+first folded line \
+ \continues here
+second folded line \
+ \also continues
+
+¶
+
+Source code with renderer-added markers:¶
+
+<CODE BEGINS> file "marked-wrap.txt"
+NOTE: '\' line wrapping per RFC 8792
+
+marked folded line \
+continues here
+
+<CODE ENDS>
+¶
+
+A quoted header without folded content is not copyable:¶
+
+NOTE: '\' line wrapping per RFC 8792
+This block mentions the header but does not use RFC 8792 folding.
+
¶
+
+
+
-2. References
+3. References
- [ref0]
@@ -286,5 +333,124 @@
toc.classList.remove("active");
});
+