diff --git a/cognac_gen.sh b/cognac_gen.sh index a85f3f8..4725368 100755 --- a/cognac_gen.sh +++ b/cognac_gen.sh @@ -230,7 +230,7 @@ replace_args() local t=$(get_type3 "$st_info" "$a") local snake_n=$(to_snakecase <<< $a) echo "\"--$a: $t\\n\"" - get_type_description "$st_info" "$a" | sed 's/
//g;s/\\"/\"/g' | tr -d '"' | fold -s -w72 | sed 's/^/\t" /;s/$/\\n"/;s/\"/\\"/g' + get_type_description "$st_info" "$a" | sed 's/
//g;s/\\"/\"/g' | tr -d '"' | fold -s -w92 | sed 's/^/\t" /;s/$/\\n"/;s/\"/\\"/g' done echo -en $D2 done diff --git a/helper.sh b/helper.sh index e473cbd..fd2dd24 100644 --- a/helper.sh +++ b/helper.sh @@ -88,7 +88,7 @@ get_sub_type_description() { fi echo "${2}--${3}.${show_idx}$p: $type" if [ "$desc" != "null" ]; then - echo $desc | fold -s -w64 | sed "s/^/${2} /" + echo $desc | fold -s -w74 | sed "s/^/${2} /" fi local sub=$(json-search -R '$ref' <<< $properties 2>&1 ) if [ "$sub" != 'null' -a "$sub" != "nothing found" ]; then