diff --git a/IPython/nbconvert/filters/latex.py b/IPython/nbconvert/filters/latex.py index e766524..797a8df 100755 --- a/IPython/nbconvert/filters/latex.py +++ b/IPython/nbconvert/filters/latex.py @@ -57,7 +57,7 @@ def escape_latex(text): text : str Text containing characters that may conflict with Latex """ - text = ''.join([LATEX_SUBS.get(c, c) for c in text]) + text = ''.join(LATEX_SUBS.get(c, c) for c in text) for pattern, replacement in LATEX_RE_SUBS: text = pattern.sub(replacement, text)