Refine multi line codeblock formating

Some shells set the line background for complete terminal width instead of only the available characters to print
This commit is contained in:
2022-03-07 00:18:20 +01:00
parent a9ac8a5d1e
commit 39b184e40e

View File

@@ -190,12 +190,15 @@ parseline() {
5) ## Multiline code blocks ##
if [[ "$tocheck" =~ $rex_codeblock ]]; then
if isfix; then
format_suffix="${FO_RESET}"
unfix
else
format_prefix="${FO_CODEBLOCK}"
fix
fi
format_prefix="${FO_CODEBLOCK}"
format_suffix="${FO_RESET}"
elif isfix; then
format_prefix="${FO_CODEBLOCK}"
format_suffix="${FO_RESET}"
fi
fall || break;;
6) ## Code block started with spaces