From 81d64d0623b1009292cd3a6f2162c7637d1f51ac Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 3 Apr 2017 10:52:26 +0000 Subject: [PATCH] easyer syntax highlighting in case-esac, prevent curious parsing error svn path=/trunk/; revision=183 --- templates/browse.html.sh | 8 ++++---- templates/list.html.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/browse.html.sh b/templates/browse.html.sh index 7f28f83..6a86c3f 100755 --- a/templates/browse.html.sh +++ b/templates/browse.html.sh @@ -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 '%s\n' "$class" "$page_link" "$plink" "$pn" diff --git a/templates/list.html.sh b/templates/list.html.sh index 144ad0e..e60f3b8 100755 --- a/templates/list.html.sh +++ b/templates/list.html.sh @@ -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 '%s\n' "$class" "$page_link" "$plink" "$pn" -- 2.39.2