X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=widgets.sh;h=35b8b70ed349a9414e020e1789df3dc4176aa301;hb=120ff80b7b529ec2bb39b7f43697c78b5937b783;hp=5cd371b7e8ae47040db55a617c04fdefc3ca2f9a;hpb=1cd8b8f7e99e3d18987ed17d084091e28773779f;p=serve0 diff --git a/widgets.sh b/widgets.sh index 5cd371b..35b8b70 100644 --- a/widgets.sh +++ b/widgets.sh @@ -14,7 +14,7 @@ c_tags="$_DATA/.index/tags.cache"; c_tagcategories="$_DATA/.index/tagcategories. if [ ! -s "$c_tags" -o ! -s "$c_tagcategories" ] \ || [ "$(find "$_DATA/" -path '*/.index/meta' -newer "$c_tags")" ] then - w_tags="$( local cn=1 + w_tags="$( cn=1 find "$_DATA/" -path '*/.index/meta' -print0 \ | xargs -r0 sed -r ' s;^.*\t.*\t.*\ttags=(.*)\tcomment=.*\t.*\r$;\1;; @@ -218,7 +218,7 @@ w_advsearch(){ printf '[label [checkbox "tag_%s" "%s" %s] %s]' "$n" "$tag" "$t" "$d" done d="${f##*\$:}" d="${d%%\|*}" - [ "$category" = \$ ] && printf '[input name="tag_%i" value="%s"]' "$n" "$d" + [ "$category" = \$ ] && printf '[input name="tag_%i" value="%s"]' "$n" "$(HTML "$d")" printf '\n]' done printf ']'