Skip to content

Commit

Permalink
slightly increase line length before split
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <matthias.gatto@outscale.com>
  • Loading branch information
outscale-mgo committed Jul 18, 2024
1 parent efe53d1 commit c05e56c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cognac_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/<br \/>//g;s/\\"/\&quot;/g' | tr -d '"' | fold -s -w72 | sed 's/^/\t" /;s/$/\\n"/;s/\&quot;/\\"/g'
get_type_description "$st_info" "$a" | sed 's/<br \/>//g;s/\\"/\&quot;/g' | tr -d '"' | fold -s -w92 | sed 's/^/\t" /;s/$/\\n"/;s/\&quot;/\\"/g'
done
echo -en $D2
done
Expand Down
2 changes: 1 addition & 1 deletion helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c05e56c

Please sign in to comment.