]> git.plutz.net Git - serve0/commitdiff
easyer syntax highlighting in case-esac, prevent curious parsing error
authorpaul <paul@plutz.net>
Mon, 3 Apr 2017 10:52:26 +0000 (10:52 +0000)
committerpaul <paul@plutz.net>
Mon, 3 Apr 2017 10:52:26 +0000 (10:52 +0000)
svn path=/trunk/; revision=183

templates/browse.html.sh
templates/list.html.sh

index 7f28f83c64ac0ee5c5b8a104538ba383d4b908a5..6a86c3f1a6c8a09d3901c2e6fa7fd35eb5d97a47 100755 (executable)
@@ -60,10 +60,10 @@ EOF
     plink="$(($pn * $pagesize - $pagesize + 1))"
     
     case "$plink" in
-      $(($page - $pagesize))) class=previous;;
-      $page) class=current;;
-      $(($page + $pagesize))) class=next;;
-      ) class='';;
+      ($(($page - $pagesize))) class=previous;;
+      ($page) class=current;;
+      ($(($page + $pagesize))) class=next;;
+      (*) class='';;
     esac
   
     printf '<a class="%s" href="?%spn=%s">%s</a>\n' "$class" "$page_link" "$plink" "$pn"
index 144ad0e69f0a1d81620df98b2998a3d6afedda7e..e60f3b8b4d4ac9792426c19876841a774c68819d 100755 (executable)
@@ -60,10 +60,10 @@ EOF
     plink="$(($pn * $pagesize - $pagesize + 1))"
     
     case "$plink" in
-      $(($page - $pagesize))) class=previous;;
-      $page) class=current;;
-      $(($page + $pagesize))) class=next;;
-      ) class='';;
+      ($(($page - $pagesize))) class=previous;;
+      ($page) class=current;;
+      ($(($page + $pagesize))) class=next;;
+      (*) class='';;
     esac
   
     printf '<a class="%s" href="?%spn=%s">%s</a>\n' "$class" "$page_link" "$plink" "$pn"