From aedc2c427eae875eed57bf4fe42a2c2e5cbd9e4c Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 2 Apr 2012 11:39:08 -0400 Subject: [PATCH] Add ellipsis -> \lots escape to LATEX_REPLACEMENTS. --- chemdb/templatetags/latex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2