# HG changeset patch # User Ben Abbott # Date 1334106662 14400 # Node ID 1f922eedf9cec8cd159a65ac795a23ea94930738 # Parent be18c9e359bf4b96fd87542cbc305c0b78b2f55b Accommodate backslash string escapes in regexp pattern. (changeset e47d929fde8f). * __go_draw_axes__.m (__tex2enhanced__): Escape the backslash in the regexp patterm. diff --git a/scripts/plot/private/__go_draw_axes__.m b/scripts/plot/private/__go_draw_axes__.m --- 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}'