[asterisk-commits] eliel: branch group/appdocsxml r145191 - /team/group/appdocsxml/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 30 11:20:54 CDT 2008


Author: eliel
Date: Tue Sep 30 11:20:53 2008
New Revision: 145191

URL: http://svn.digium.com/view/asterisk?view=rev&rev=145191
Log:
Remove 'synopsis' initial blanks to fix 'core show applications' output.

Modified:
    team/group/appdocsxml/main/pbx.c

Modified: team/group/appdocsxml/main/pbx.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/main/pbx.c?view=diff&rev=145191&r1=145190&r2=145191
==============================================================================
--- team/group/appdocsxml/main/pbx.c (original)
+++ team/group/appdocsxml/main/pbx.c Tue Sep 30 11:20:53 2008
@@ -4013,7 +4013,7 @@
 {
 	ast_xml_node *tmp;
 	struct ast_str *ret = ast_str_create(1);
-	char *notcleanret;
+	char *notcleanret, *tmpstr;
 
 	if (!node || !node->AST_XML_CHILD) {
 		return NULL;
@@ -4021,8 +4021,9 @@
 
 	if (raw_output) {
 		notcleanret = ast_xml_get_text(node);
-		xmldoc_string_cleanup(notcleanret, &ret);
-		ast_xml_free_text(notcleanret);
+		tmpstr = notcleanret;
+		xmldoc_string_cleanup(ast_skip_blanks(notcleanret), &ret);
+		ast_xml_free_text(tmpstr);
 	} else {
 		tmp = node->AST_XML_CHILD;
 		while (tmp) {




More information about the asterisk-commits mailing list