From 66f39ebe38bf186232d3e73ad5bfdf3d91df3dc7 Mon Sep 17 00:00:00 2001 From: Stanley Lieber Date: Wed, 10 Feb 2016 20:34:33 -0500 Subject: [PATCH] apps/wman: fix comments and restore template syntax. --- apps/wman/app.rc | 2 +- apps/wman/page_list.tpl | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/wman/app.rc b/apps/wman/app.rc index 168df02..8f0a150 100755 --- a/apps/wman/app.rc +++ b/apps/wman/app.rc @@ -79,7 +79,7 @@ fn wman_out_filter { } fn wman_default_out_filter { - # Using GNU col here to remove nroffs garbage (eg., from .ft B); p9p has no col(1) :( + # col -x syntax is the same for UNIX and Plan 9. escape_html \ | sed 's!([\.\-a-zA-Z0-9]+)\(('^`{echo $wman_cat_list|tr ' ' '|'}^')\)!&!g' \ | awk '/^$/ {if(n != 1) print; n=1; next} /./ {n=0; print}' \ diff --git a/apps/wman/page_list.tpl b/apps/wman/page_list.tpl index bebf853..b98600d 100755 --- a/apps/wman/page_list.tpl +++ b/apps/wman/page_list.tpl @@ -1,8 +1,11 @@ +% d=`{wman_get_section_desc $wman_cat} +

Manual pages - Section %($wman_cat%): %($"d%)

-% d=`{wman_get_section_desc $wman_cat} -

Manual pages - Section -% echo $wman_cat': '$"d2 -

+