changeset 452:0fae349c457c

parser inline_latex: bug fix stripping of $ at the beginning and the end of the sequence.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 29 Oct 2009 12:27:33 +0100
parents 10cf8401e889
children 433b3e6a7911
files data/plugin/parser/inline_latex.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/inline_latex.py	Fri Oct 09 22:47:23 2009 +0200
+++ b/data/plugin/parser/inline_latex.py	Thu Oct 29 12:27:33 2009 +0100
@@ -29,6 +29,7 @@
         self.mathtran_parser = wikiutil.importPlugin(self.request.cfg, 'parser', 'text_x_mathtran', 'Parser')
 
     def _latex_formula_repl(self, word, groups):
+        word = word[1:len(word)-1]
         mp = self.mathtran_parser(word, self.request, format_args=self.args)
         if mp.init_settings:
             return mp.render(self.formatter)