Mercurial > hg > octave-lyh
changeset 14545:1f922eedf9ce
Accommodate backslash string escapes in regexp pattern.
(changeset e47d929fde8f).
* __go_draw_axes__.m (__tex2enhanced__): Escape the backslash in the regexp
patterm.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Tue, 10 Apr 2012 21:11:02 -0400 |
parents | be18c9e359bf |
children | b8edefd8c111 |
files | scripts/plot/private/__go_draw_axes__.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/private/__go_draw_axes__.m +++ b/scripts/plot/private/__go_draw_axes__.m @@ -2339,7 +2339,7 @@ persistent sym = __setup_sym_table__ (); persistent flds = fieldnames (sym); - [s, e, m] = regexp(str,'\\([a-zA-Z]+|0)','start','end','matches'); + [s, e, m] = regexp(str,'\\\\([a-zA-Z]+|0)','start','end','matches'); for i = length (s) : -1 : 1 ## special case for "\0" and replace with "{/Symbol \306}'