fix: Don't try to further linkify rfc2html output (#5112)

* fix: Don't try to further linkify rfc2html output

Fixes #5111

* Fix test
This commit is contained in:
Lars Eggert 2023-02-10 22:33:54 +02:00 committed by GitHub
parent 4309a4bb50
commit 6a6a3db3b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -740,7 +740,7 @@ Man Expires September 22, 2015 [Page 3]
self.assertEqual(q('title').text(), 'draft-ietf-mars-test-01')
self.assertEqual(len(q('.rfcmarkup pre')), 3)
self.assertEqual(len(q('.rfcmarkup span.h1, .rfcmarkup h1')), 2)
self.assertEqual(len(q('.rfcmarkup a[href]')), 28)
self.assertEqual(len(q('.rfcmarkup a[href]')), 27)
r = self.client.get(urlreverse("ietf.doc.views_doc.document_html", kwargs=dict(name=draft.name, rev=draft.rev)))
self.assertEqual(r.status_code, 200)

View file

@ -133,7 +133,7 @@
<div class="rfcmarkup">
<br class="noprint">
<!-- [html-validate-disable-block attr-quotes, void-style, element-permitted-content, heading-level -- FIXME: rfcmarkup/rfc2html generates HTML with issues] -->
{{ doc.htmlized|default:"Generation of htmlized text failed"|linkify|safe }}
{{ doc.htmlized|default:"Generation of htmlized text failed"|safe }}
</div>
{% endif %}
</div>