Modify

Opened 7 years ago

Last modified 4 years ago

#1310 new defect

[Patch] Fix for tracformula when using ' in formulas

Reported by: jasper@… Owned by: vgough
Priority: normal Component: LatexFormulaMacro
Severity: normal Keywords:
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("'", "&#39"))
        return html

def makeTexFile(self, texFile, texData, mathMode, texMag):

Attachments (0)

Change History (3)

comment:1 follow-up: Changed 7 years ago by jasper@…

This patch is against #248 , which works for me <TM> with 0.10.3

comment:2 in reply to: ↑ 1 Changed 7 years ago by vgough@…

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 4 years ago by rjollos

  • Summary changed from fix for tracformula when using ' in formulas to [Patch] Fix for tracformula when using ' in formulas

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.