Skip to content

Commit 2c39de6

Browse files
committed
Replaced the local copy of the draft/rfc htmlization code with rfc2html as installed modeule.
- Legacy-Id: 13827
1 parent 80f4d86 commit 2c39de6

3 files changed

Lines changed: 3 additions & 387 deletions

File tree

ietf/doc/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import datetime
44
import logging
55
import os
6+
import rfc2html
67

78
from django.db import models
89
from django.core import checks
@@ -22,7 +23,6 @@
2223
from ietf.person.models import Email, Person
2324
from ietf.utils import log
2425
from ietf.utils.admin import admin_link
25-
from ietf.utils.rfcmarkup import markup
2626
from ietf.utils.validators import validate_no_control_chars
2727
from ietf.utils.mail import formataddr
2828

@@ -449,7 +449,7 @@ def htmlized(self):
449449
if not html:
450450
# The path here has to match the urlpattern for htmlized
451451
# documents in order to produce correct intra-document links
452-
html = markup(text, path=settings.HTMLIZER_URL_PREFIX)
452+
html = rfc2html.markup(text, path=settings.HTMLIZER_URL_PREFIX)
453453
if html:
454454
cache.set(key, html, settings.HTMLIZER_CACHE_TIME)
455455
return html

0 commit comments

Comments
 (0)