{"thread":{"id":"3679","subject":"[PATCH] Fix multi-paragraph list items in OPTIONS section","startedAt":"2006-03-19T23:39:46Z","lastAt":"2006-03-19T23:39:46Z","messageCount":1,"participants":["Jonas Fonseca"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"17689","messageId":"20060319233946.GB22802@diku.dk","threadId":"3679","inReplyTo":null,"subject":"[PATCH] Fix multi-paragraph list items in OPTIONS section","fromName":"Jonas Fonseca","fromEmail":"fonseca@diku.dk","sentAt":"2006-03-19T23:39:46Z","receivedAt":"2006-03-19T23:39:46Z","isPatch":true,"sender":{"key":"fonseca@diku.dk","avatar":"https://gravatar.com/avatar/f82f3ad698717c51873b020c750a92438c820a24056dc39fe4d07baa10a92264?d=mp&s=160"},"body":"Asciidoc cannot handle multi-paragraph description list items without the\nneed for adding special control characters and reindenting all paragraphs\nbut the first. Workaround it in make-cg-asciidoc so that the documentation\nin the script headers can use the more intuitive and readable formatting.\n\nAffected files are cg-patch and cg-commit.\n\nSigned-off-by: Jonas Fonseca <fonseca@diku.dk>\n\n---\n\n Documentation/make-cg-asciidoc |   25 ++++++++++++++++++++++++-\n 1 files changed, 24 insertions(+), 1 deletions(-)\n\ndiff --git a/Documentation/make-cg-asciidoc b/Documentation/make-cg-asciidoc\nindex 126d4eb..c454062 100755\n--- a/Documentation/make-cg-asciidoc\n+++ b/Documentation/make-cg-asciidoc\n@@ -112,8 +112,31 @@ $DESCRIPTION\n \n OPTIONS\n -------\n-$OPTIONS\n+\n+--\n+__END__\n+\n+# Only indent the first paragraph of multi-paragraph list items.\n+multipara=\n+echo \"$OPTIONS\" | while read line; do\n+\tcase \"$line\" in\n+\t*::)\n+\t\tmultipara=\n+\t\t;;\n+\t\"\")\n+\t\tmultipara=t\n+\t\t;;\n+\t*)\n+\t\t[ \"$multipara\" ] || line=\"\t$line\"\n+\tesac\n+\n+\techo \"$line\"\n+done\n+\n+cat <<__END__\n+\n $HELP_OPTIONS\n+--\n \n $MISC\n \n\n-- \nJonas Fonseca\n"}]}