]> git.plutz.net Git - serve0/blobdiff - templates/view.html.sh
added licence headers, coding style improvements
[serve0] / templates / view.html.sh
index 85f3e9ad9a48ea0b9870fe33effcbbfab5e6c5ba..3c0e3a5f6b8525a7b12292265796c9a422f49d39 100755 (executable)
@@ -51,8 +51,8 @@ cat <<EOF
   <span class="info height">Height: $height</span><br>
   
   <label class="tags">Tags:</label>
-  $(echo "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span>:g')
-  ${description:+<span class="info description">$(echo -E "$description" |_wiki)</span>}
+  $(printf %s\\n "$tags" |sed -r 's:\|*([^|]+)\|*:<span class="info tag">\1</span>:g')
+  ${description:+<span class="info description">$(printf %s "$description" |_wiki)</span>}
 
   <form class="panel" id="tagger" action="?action=meta&${page_this}" method="post" accept-charset="UTF-8">
     <input type="hidden" name="length" value="$length">