changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: apps/wman: fix comments and restore template syntax.

changeset 665: 5314c20efddb
parent 664: df20e7e8792a
child 666: fd309a46787c
author: sl
date: Wed, 10 Feb 2016 20:34:33 -0500
files: apps/wman/app.rc apps/wman/page_list.tpl
description: apps/wman: fix comments and restore template syntax.
     1.1--- a/apps/wman/app.rc	Wed Feb 10 20:33:27 2016 -0500
     1.2+++ b/apps/wman/app.rc	Wed Feb 10 20:34:33 2016 -0500
     1.3@@ -79,7 +79,7 @@
     1.4 }
     1.5 
     1.6 fn wman_default_out_filter {
     1.7-    # Using GNU col here to remove nroffs garbage (eg., from .ft B); p9p has no col(1) :(
     1.8+	# col -x syntax is the same for UNIX and Plan 9.
     1.9     escape_html \
    1.10     | sed 's!([\.\-a-zA-Z0-9]+)\(('^`{echo $wman_cat_list|tr ' ' '|'}^')\)!<a href="../\2/\1">&</a>!g' \
    1.11     | awk '/^$/ {if(n != 1) print; n=1; next} /./ {n=0; print}' \
     2.1--- a/apps/wman/page_list.tpl	Wed Feb 10 20:33:27 2016 -0500
     2.2+++ b/apps/wman/page_list.tpl	Wed Feb 10 20:34:33 2016 -0500
     2.3@@ -1,8 +1,11 @@
     2.4+% d=`{wman_get_section_desc $wman_cat} 
     2.5+<h1>Manual pages - Section %($wman_cat%): %($"d%)</h1>
     2.6 
     2.7-% d=`{wman_get_section_desc $wman_cat}
     2.8-<h1>Manual pages - Section
     2.9-% echo $wman_cat': '$"d2
    2.10-</h1>
    2.11 <ul style="float:left">
    2.12-% wman_ls_pages $wman_cat_path | awk -F/ '{ print "<li><a href=\""$(NF)"\">"$(NF)"</a></li>" } NR%20 == 0 { print "</ul><ul style=\"float: left\">" }'
    2.13+%{
    2.14+wman_ls_pages $wman_cat_path \
    2.15+    | awk -F/ '{ print "<li><a href=\""$(NF)"\">"$(NF)"</a></li>" }
    2.16+    NR%20 == 0 { print "</ul><ul style=\"float: left\">" }'
    2.17+%}
    2.18 </ul>
    2.19+