projects
/
chemdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
290ceec
)
Add ellipsis -> \lots escape to LATEX_REPLACEMENTS.
author
W. Trevor King
<wking@drexel.edu>
Mon, 2 Apr 2012 15:39:08 +0000
(11:39 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Mon, 2 Apr 2012 15:39:08 +0000
(11:39 -0400)
chemdb/templatetags/latex.py
patch
|
blob
|
history
diff --git
a/chemdb/templatetags/latex.py
b/chemdb/templatetags/latex.py
index baaf5b3f39036f6263a6fa00f98b320a679c966f..da09d0762a7286e0b7d02d2b597d1d28451993e2 100644
(file)
--- 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