From: <md...@us...> - 2007-07-18 18:31:56
|
Revision: 3559 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3559&view=rev Author: mdboom Date: 2007-07-18 08:41:59 -0700 (Wed, 18 Jul 2007) Log Message: ----------- Fix spacing when going from non-math to math. Modified Paths: -------------- branches/mathtext_mgd/lib/matplotlib/mathtext.py Modified: branches/mathtext_mgd/lib/matplotlib/mathtext.py =================================================================== --- branches/mathtext_mgd/lib/matplotlib/mathtext.py 2007-07-18 15:27:58 UTC (rev 3558) +++ branches/mathtext_mgd/lib/matplotlib/mathtext.py 2007-07-18 15:41:59 UTC (rev 3559) @@ -1311,7 +1311,10 @@ def non_math(self, s, loc, toks): #~ print "non_math", toks - symbols = [SymbolElement(c) for c in toks[0]] + # This is a hack, but it allows the system to use the + # proper amount of advance when going from non-math to math + s = toks[0] + ' ' + symbols = [SymbolElement(c) for c in s] self.symbols.extend(symbols) non_math = NonMathGroupElement(symbols) return [non_math] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |