ref: ed39b15eb146ed76c23157b3df7d7191dcec7968
parent: 0bd715dabb37c85b6cabace0a72ce18b50f12cf3
author: Stanley Lieber <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
--
⑨