Modify ↓
Opened 18 years ago
Last modified 7 years ago
#1310 new defect
[Patch] Fix for tracformula when using ' in formulas
Reported by: | Owned by: | Valient Gough | |
---|---|---|---|
Priority: | normal | Component: | LatexFormulaMacro |
Severity: | normal | Keywords: | patch |
Cc: | Trac Release: | 0.10 |
Description
--- TracFormula-0.1/formula/__init__.py 2006-03-27 00:34:06.000000000 +0200 +++ my-TracFormula-0.1/formula/__init__.py 2007-03-12 21:12:11.000000000 +0100 @@ -120,7 +122,7 @@ else: margin = "" - html = "<img src='%s' border='0' style='vertical-align: middle;%s' alt='%s'/>" % (self.env.href.chrome('site','formulas/%s.%s'%(name, self.imageFormat)), margin, texData) + html = "<img src='%s' border='0' style='vertical-align: middle;%s' alt='%s'/>" % (self.env.href.chrome('site','formulas/%s.%s'%(name, self.imageFormat)), margin, texData.replace("'", "'")) return html
def makeTexFile(self, texFile, texData, mathMode, texMag):
Attachments (0)
Change History (4)
comment:1 follow-up: 2 Changed 18 years ago by
comment:2 Changed 18 years ago by
Replying to jasper@vs19.net:
This patch is against #248 , which works for me <TM> with 0.10.3
Hi, I haven't used Trac in well over a year now, so I'm no longer doing anything with LatexFormulaMacro. If you'd like to maintain it, please feel free.
Valient
comment:3 Changed 14 years ago by
Summary: | fix for tracformula when using ' in formulas → [Patch] Fix for tracformula when using ' in formulas |
---|
comment:4 Changed 7 years ago by
Keywords: | patch added |
---|
Note: See
TracTickets for help on using
tickets.
This patch is against #248 , which works for me <TM> with 0.10.3