mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-11 07:51:45 +00:00
fix(tui_layout): handle missing and empty string parameters correctly
This commit is contained in:
@@ -16,13 +16,15 @@ FULL_DASH="- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# function to print content lines
|
||||
# (using cursor jump)
|
||||
content_line() {
|
||||
echo -e " ${1}\033[${TABLE_WIDTH}G||"
|
||||
local param="${1:-}"
|
||||
echo -e " ${param}\033[${TABLE_WIDTH}G||"
|
||||
}
|
||||
|
||||
# function to print sub content lines
|
||||
# for printing accompanying instructions
|
||||
sub_content_line() {
|
||||
echo -e " ${1}\033[${TABLE_WIDTH}G||"
|
||||
local param="${1:-}"
|
||||
echo -e " ${param}\033[${TABLE_WIDTH}G||"
|
||||
content_line
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user