Skip to content

Commit b6b48ec

Browse files
authored
fix: Only allow a single newline in when URLizing RFC tags (ietf-tools#4710)
Fixes ietf-tools#4705
1 parent fbd9509 commit b6b48ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/templatetags/ietf_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def urlize_ietf_docs(string, autoescape=None):
249249
flags=re.IGNORECASE | re.ASCII,
250250
)
251251
string = re.sub(
252-
r"\b(?<![/\-:=#\"\'])((RFC|BCP|STD|FYI)\s*0*(\d+))\b",
252+
r"\b(?<![/\-:=#\"\'])((RFC|BCP|STD|FYI) *\n? *0*(\d+))\b",
253253
link_other_doc_match,
254254
string,
255255
flags=re.IGNORECASE | re.ASCII,

0 commit comments

Comments
 (0)