Added newlines between each meal
This commit is contained in:
parent
72544de2c2
commit
e32d6b2c56
|
@ -43,6 +43,9 @@ get_zradylko() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
main_course_with_newlines=$(echo "$main_course" | sed 's/ Kč/ Kč\\n/g')
|
||||||
|
weekly_course_with_newlines=$(echo "$main_course" | sed 's/ Kč/ Kč\\n/g')
|
||||||
|
|
||||||
# Create a JSON object with the desired fields
|
# Create a JSON object with the desired fields
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
output=''${output}'
|
output=''${output}'
|
||||||
|
@ -59,11 +62,11 @@ get_zradylko() {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Hlavni chod",
|
"name": "Hlavni chod",
|
||||||
"value": "'"$main_course"'"
|
"value": "'"$main_course_with_newlines"'"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Tydenni nabidka",
|
"name": "Tydenni nabidka",
|
||||||
"value": "'"$weekly_course"'"
|
"value": "'"$weekly_course_with_newlines"'"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},'
|
},'
|
||||||
|
|
Loading…
Reference in New Issue