bashly
bashly copied to clipboard
Add word_wrap option to settings
cc #687
Changes:
String#wrapno longer has a default value of 80 (it was never used by anyone)- Settings now has a new
word_wrapoption, defaults to 80 Renderableconcern now has a newuser_stringhelper that allows this diff with the same result:
Word wrap is calculated by using the settings value minus indent (same behavior, only with user value).- printf "{{ help.wrap(76).indent(4).sanitize_for_print }}\n" + printf "{{ user_string help, indent: 4 }}\n"