##// END OF EJS Templates
Fix ansi2latex color remainer of string.
Jonathan Frederic -
Show More
@@ -149,7 +149,9 b' def ansi2latex(text):'
149 texform, openbrack = single_ansi2latex(match.group())
149 texform, openbrack = single_ansi2latex(match.group())
150 outstring += texform
150 outstring += texform
151 last_end = match.end()
151 last_end = match.end()
152
153 #Add the remainer of the string and THEN close any remaining color brackets.
154 outstring += text[last_end:]
152 if openbrack:
155 if openbrack:
153 outstring += '}'*openbrack
156 outstring += '}'*openbrack
154 outstring += text[last_end:]
155 return outstring.strip()
157 return outstring.strip()
General Comments 0
You need to be logged in to leave comments. Login now