]> granicus.if.org Git - graphviz/commitdiff
Fix bug 701
authorerg <devnull@localhost>
Mon, 2 May 2005 18:06:59 +0000 (18:06 +0000)
committererg <devnull@localhost>
Mon, 2 May 2005 18:06:59 +0000 (18:06 +0000)
lib/common/shapes.c

index f0cfaadee09be8205798873b107006b30c0b15d2..17961c55d410133a234c1d1b87ae8fb4ee0218de 100644 (file)
@@ -1351,7 +1351,7 @@ parse_reclbl(node_t * n, int LR, int flag, char *text)
     for (maxf = 1, cnt = 0, sp = reclblp; *sp; sp++) {
        if (*sp == '\\') {
            sp++;
-           if (*sp && (*sp == '{' || *sp == '}' || *sp == '|'))
+           if (*sp && (*sp == '{' || *sp == '}' || *sp == '|' || *sp == '\\'))
                continue;
        }
        if (*sp == '{')
@@ -1436,6 +1436,11 @@ parse_reclbl(node_t * n, int LR, int flag, char *text)
            if (*(reclblp + 1)) {
                if (ISCTRL(*(reclblp + 1)))
                    reclblp++;
+                else if (*reclblp == '\\') { /* handles escaped \ */
+                    *tsp++ = '\\';
+                    mode |= (INTEXT | HASTEXT);
+                    reclblp++;
+                }
                else if (*(reclblp + 1) == ' ')
                    ishardspace = TRUE, reclblp++;
            }