X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command_util.sh;h=847f87e4ccdd379330c36ed27dc65db4ecc96edb;hp=f388b2cfb152db7cf34e0b2f84313ba26a209903;hb=75d545612d8fb51b7e6b2f8a7349b54502004cfa;hpb=63c513602a6b6a97cdced053beea0b2d07a9f984 diff --git a/command_util.sh b/command_util.sh index f388b2cf..847f87e4 100755 --- a/command_util.sh +++ b/command_util.sh @@ -229,6 +229,7 @@ dump_proto() dump_array_member() { + local TAB=' ' echo '{' echo ".name = \"$name_txt\"," echo ".handler = com_$name_txt," @@ -238,7 +239,8 @@ dump_array_member() echo ".description = \"$desc_txt\"," echo ".usage = \"$usage_txt\"," echo ".help = " - printf "%s\n" "$help_txt" | sed -e 's/^/\"/g' -e 's/$/\\n\"/g' + printf "%s\n" "$help_txt" | sed -e 's/^/\"/g' -e 's/$/\\n\"/g' \ + -e "s/$TAB/\\\t/g" echo '},' }