Skip to content

Commit fe8cd06

Browse files
committed
Back out the htmlization code for the moment.
- Legacy-Id: 12997
1 parent e724ed9 commit fe8cd06

2 files changed

Lines changed: 9 additions & 388 deletions

File tree

ietf/doc/models.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import datetime
44
import logging
55
import os
6-
import re
6+
#import re
77

88
from django.db import models
99
from django.core import checks
@@ -22,7 +22,7 @@
2222
from ietf.person.models import Email, Person
2323
from ietf.utils import log
2424
from ietf.utils.admin import admin_link
25-
from ietf.utils.rfcmarkup import markup
25+
#from ietf.utils.rfcmarkup import markup
2626
from ietf.utils.validators import validate_no_control_chars
2727

2828
logger = logging.getLogger('django')
@@ -652,13 +652,13 @@ def text(self):
652652
return text
653653

654654

655-
def htmlized(self):
656-
text = self.text()
657-
html = None
658-
if text:
659-
html = markup(text, path="/doc")
660-
html = re.sub(r'<hr[^>]*/>','', html)
661-
return html
655+
# def htmlized(self):
656+
# text = self.text()
657+
# html = None
658+
# if text:
659+
# html = markup(text, path="/doc")
660+
# html = re.sub(r'<hr[^>]*/>','', html)
661+
# return html
662662

663663
class RelatedDocHistory(models.Model):
664664
source = models.ForeignKey('DocHistory')

0 commit comments

Comments
 (0)