From: W. Trevor King Date: Mon, 2 Apr 2012 15:39:08 +0000 (-0400) Subject: Add ellipsis -> \lots escape to LATEX_REPLACEMENTS. X-Git-Url: http://git.tremily.us/?p=chemdb.git;a=commitdiff_plain;h=aedc2c427eae875eed57bf4fe42a2c2e5cbd9e4c Add ellipsis -> \lots escape to LATEX_REPLACEMENTS. --- diff --git a/chemdb/templatetags/latex.py b/chemdb/templatetags/latex.py index baaf5b3..da09d07 100644 --- a/chemdb/templatetags/latex.py +++ b/chemdb/templatetags/latex.py @@ -8,7 +8,8 @@ from django import template as _template register = _template.Library() -LATEX_REPLACEMENTS = [('%', '\%'), ('>', '$>$'), ('<', '$<$')] +LATEX_REPLACEMENTS = [ + ('%', r'\%'), ('>', '$>$'), ('<', '$<$'), (u'\u2026', r'\ldots')] _SUPERSCRIPT_CODEPOINTS = {1: 0x00B9, 2: 0x00B2, 3: 0x00B3} for i in range(9): subscript_codepoint = 0x2080 + i