From: Michiel van Baak Date: Sat, 15 Aug 2009 11:25:11 +0000 (+0000) Subject: Add an empty line after each option when printing the X-Git-Tag: 11.0.0-beta1~4350 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44ae3134227bdc4a641ccc0a9c43767a5b7176d9;p=thirdparty%2Fasterisk.git Add an empty line after each option when printing the documentation of a function/application. This will make reading the docs on the CLI way more easy. (closes issue #15694) Reported by: mvanbaak Patches: 2009081100-extralinesoptionlist.diff.txt uploaded by mvanbaak (license 7) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@212339 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/xmldoc.c b/main/xmldoc.c index 17a756a272..70f5566f56 100644 --- a/main/xmldoc.c +++ b/main/xmldoc.c @@ -1611,6 +1611,7 @@ static void xmldoc_parse_optionlist(struct ast_xml_node *fixnode, const char *ta if (!xmldoc_parse_option(node, tabs, buffer)) { ast_str_append(buffer, 0, "\n"); } + ast_str_append(buffer, 0, "\n"); ast_xml_free_attr(optname); ast_xml_free_attr(hasparams); }