Modify

Opened 18 years ago

Last modified 7 years ago

#1310 new defect

[Patch] Fix for tracformula when using ' in formulas

Reported by: jasper@… 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("'", "&#39"))
        return html

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

Attachments (0)

Change History (4)

comment:1 Changed 18 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 18 years ago by Valient Gough

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 Ryan J Ollos

Summary: fix for tracformula when using ' in formulas[Patch] Fix for tracformula when using ' in formulas

comment:4 Changed 7 years ago by figaro

Keywords: patch added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Valient Gough.

Add Comment


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

 
Note: See TracTickets for help on using tickets.