From: Andre Noll Date: Wed, 24 Nov 2010 22:36:01 +0000 (+0100) Subject: command_util: Replace tabs by \t. X-Git-Tag: v0.4.6~47^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=fdd455becf054acc4b8d70d106f4f74c4348e386 command_util: Replace tabs by \t. Probably does not matter much... --- 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 '},' }