white space between labels
authorPaul Hänsch <paul@plutz.net>
Fri, 5 Feb 2021 03:42:50 +0000 (04:42 +0100)
committerPaul Hänsch <paul@plutz.net>
Fri, 5 Feb 2021 03:42:50 +0000 (04:42 +0100)
cards/widgets.sh

index 27cdf04..7dfa3ad 100755 (executable)
@@ -33,7 +33,7 @@ cat <<EOF
     [input type="text" name="filter_text$n" value="$([ "$1" = CATEGORIES -o "$1" = course ] || HTML "$2")" placeholder="$(l10n filter_placeholder)"]
     [fieldset .categories
       $(list_categories | while read cat; do
-          printf '[label [checkbox "filter_cat%i" "|%s" %s] %s ]' \
+          printf '[label [checkbox "filter_cat%i" "|%s" %s] %s ] ' \
                  "$n" "$(HTML "$cat")" \
                  "$(printf %s "$cat" |grep -qxEe "$2" && printf checked )" \
                  "$(HTML "$cat")"
@@ -42,7 +42,7 @@ cat <<EOF
     ]
     [fieldset .courses
       $(for course in "$_DATA/ical"/*.ics; do
-        printf '[label [checkbox "filter_course%i" "|%s" %s] %s ]' \
+        printf '[label [checkbox "filter_course%i" "|%s" %s] %s ] ' \
                "$n" "$(HTML "${course##*/}")" \
                "$(printf %s "${course##*/}" |grep -qxEe "$2" && printf checked )" \
                "$(pdi_value "$(pdi_load "$course")" SUMMARY |HTML)"