X-Git-Url: http://www.andromeda.nl/gitweb/?a=blobdiff_plain;f=xp.c;h=52a64913248f72961187aa7de1bdf23dba97a93b;hb=HEAD;hp=d5120b5c93ad5b48a0b2eeaae9db6214ec002af1;hpb=0c1cea55720a251b3b050eb9023dc4e222df49b7;p=xmldoc.git diff --git a/xp.c b/xp.c index d5120b5..52a6491 100644 --- a/xp.c +++ b/xp.c @@ -91,12 +91,13 @@ struct { '$', "\\$" }, { '%', "\\%" }, { '&', "\\&" }, - { '<', "\\verb+<+" }, - { '>', "\\verb+>+" }, + { '<', "$<$" }, + { '>', "$>$" }, { '\\', "$\\backslash$" }, - { '^', "\\verb+^+" }, + { '^', "$\\wedge$" }, { '_', "\\_" }, { '{', "\\{" }, + { '|', "$\\mid$" }, { '}', "\\}" }, { '~', "$\\sim$" }, { 160, "~" }, @@ -510,7 +511,7 @@ void LatexEscape(xmlNodePtr node) } for (child = node->children; child != 0; child = child->next) { - if (strcmp(child->name, "verbatim") != 0 ) + if (strcmp(child->name, "verbatim") != 0 && strcmp(child->name, "example") != 0) { LatexEscape(child); }