##// END OF EJS Templates
First add the truncator (if there is none in the text itself), then closing tags
neko259 -
r1788:e1bfd1eb default
parent child Browse files
Show More
@@ -106,9 +106,10 b' def truncatenewlines_html(value, arg):'
106
106
107 current_pos = tag.end()
107 current_pos = tag.end()
108
108
109 if not text.endswith(TRUNCATOR):
110 text += TRUNCATOR
109 for tag in open_tags:
111 for tag in open_tags:
110 text += '</%s>'.format(tag)
112 text += '</%s>'.format(tag)
111 text += TRUNCATOR
112 else:
113 else:
113 text = value
114 text = value
114
115
General Comments 0
You need to be logged in to leave comments. Login now