Add ellipsis -> \lots escape to LATEX_REPLACEMENTS.
authorW. Trevor King <wking@drexel.edu>
Mon, 2 Apr 2012 15:39:08 +0000 (11:39 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 2 Apr 2012 15:39:08 +0000 (11:39 -0400)
chemdb/templatetags/latex.py

index baaf5b3f39036f6263a6fa00f98b320a679c966f..da09d0762a7286e0b7d02d2b597d1d28451993e2 100644 (file)
@@ -8,7 +8,8 @@ from django import template as _template
 register = _template.Library()
 
 
 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
 _SUPERSCRIPT_CODEPOINTS = {1: 0x00B9, 2: 0x00B2, 3: 0x00B3}
 for i in range(9):
     subscript_codepoint = 0x2080 + i