Skip to content

Commit 1f24714

Browse files
committed
Fix /singlequote (') in Ps backend.
svn path=/branches/v0_91_maint/; revision=5134
1 parent 7089321 commit 1f24714

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2008-05-09 Fix /singlequote (') in Postscript backend - MGD
2+
13
2008-05-08 Fix kerning in SVG when embedding character outlines - MGD
24

35
2008-05-06 Fix strange colors when blitting in QtAgg and Qt4Agg - MGD

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def quote_ps_string(s):
9696
s=s.replace("\\", "\\\\")
9797
s=s.replace("(", "\\(")
9898
s=s.replace(")", "\\)")
99+
s=s.replace("'", "\\251")
99100
s=re.sub(r"[^ -~\n]", lambda x: r"\%03o"%ord(x.group()), s)
100101
return s
101102

0 commit comments

Comments
 (0)