NEWS update.
[paraslash.git] / command_util.sh
index f388b2c..847f87e 100755 (executable)
@@ -229,6 +229,7 @@ dump_proto()
 
 dump_array_member()
 {
 
 dump_array_member()
 {
+       local TAB='     '
        echo '{'
        echo ".name = \"$name_txt\","
        echo ".handler = com_$name_txt,"
        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 = "
        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 '},'
 }
 
        echo '},'
 }