From 5fea93fd69e75fdcab776ba5be2a7155f13cbdfd Mon Sep 17 00:00:00 2001 From: seanbright Date: Tue, 26 May 2009 22:47:35 +0000 Subject: Merged revisions 196948 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r196948 | seanbright | 2009-05-26 18:43:21 -0400 (Tue, 26 May 2009) | 8 lines 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: http://svn.digium.com/svn/asterisk/branches/1.6.2@196951 f38db490-d61c-443f-a65b-d21fe96a405b --- main/xmldoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/xmldoc.c b/main/xmldoc.c index f483f8b0a..318b3bd6e 100644 --- a/main/xmldoc.c +++ b/main/xmldoc.c @@ -396,7 +396,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; } -- cgit v1.2.3