diff --git a/boards/templatetags/board.py b/boards/templatetags/board.py --- a/boards/templatetags/board.py +++ b/boards/templatetags/board.py @@ -106,7 +106,7 @@ def truncate_lines(text, length): # It's an actual non-HTML word or char current_len += 1 if current_len == length: - end_text_pos = pos + end_text_pos = m.start(0) continue # Check for tag tag = REGEX_TAG.match(m.group(0))