From: Sean Bright Date: Tue, 26 May 2009 22:43:21 +0000 (+0000) Subject: Reset the terminal to the correct fg/bg after XML documenation is rendered. X-Git-Tag: 11.0.0-beta1~4814 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e27e8615ede0597be0255e149570d70355b6c7dd;p=thirdparty%2Fasterisk.git Reset the terminal to the correct fg/bg after XML documenation is rendered. (closes issue #15200) Reported by: ajohnson Patches: 05262009_xmldoc.patch uploaded by seanbright (license 71) Tested by: ajohnson git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196948 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/xmldoc.c b/main/xmldoc.c index 3f9b607d27..72625ff0e8 100644 --- a/main/xmldoc.c +++ b/main/xmldoc.c @@ -398,7 +398,7 @@ char *ast_xmldoc_printable(const char *bwinput, int withcolors) } if (withcolors) { - ast_term_color_code(&colorized, COLOR_BRWHITE, 0); + ast_str_append(&colorized, 0, "%s", term_end()); if (!colorized) { return NULL; }