Author: jeremysanders Date: Mon Jan 31 21:30:40 2011 New Revision: 1485 URL: http://svn.gna.org/viewcvs/veusz?rev=1485&view=rev Log: Patch by Benjamin K Stuhl: It turns out that \_ and \^ do not render at all in veusz SVN; the attached patch fixes that. It turned out to be simplest to modify the render tree construction to execute symbol substitutions at the same time as scripts and commands, since the two-pass substitution meant that (originally escaped) carets or underscores tended to later get re-interpreted as script commands... I also added another character, \backslash, since there doesn't seem to be any way to currently put a literal backslash in a text field. Manual testing seems to indicate that the text rendering is now correct, including reasonably pathological cases like "a\\\backslash\__\^^\dagger".
Modified: trunk/utils/textrender.py _______________________________________________ Veusz-cvs mailing list Veusz-cvs@gna.org https://mail.gna.org/listinfo/veusz-cvs