ref: b05ef130d682a29dca47351961cc3d3e533af097
parent: e3868c52509cdae3c626eedaa958fe9e214b5056
author: sl <sl@stanleylieber.com>
date: Sat Dec 7 16:53:38 EST 2019
apps/wman/app.rc: fix columnization
--- a/apps/wman/app.rc
+++ b/apps/wman/app.rc
@@ -81,6 +81,7 @@
fn wman_default_out_filter {
# col -x syntax is the same for UNIX and Plan 9.
escape_html \
+ | ssam 'x/[a-z]+-\n[ ]+[a-z]+\([0-9]\)/s/\n[ ]+//' \
| sed 's!([\.\-a-zA-Z0-9]+)\(('^`{echo $wman_cat_list|tr ' ' '|'}^')\)!<a href="../\2/\1">&</a>!g' \
| awk '/^$/ {if(n != 1) print; n=1; next} /./ {n=0; print}' \
| col -x