shithub: werc

Download patch

ref: d3ca9af6766eb1523c0731cb104774f78f3f9711
parent: 3809184bf62e96c0d3b3bf907ea5cbfba7392304
author: sl <uriel@engel.se.cat-v.org>
date: Thu Oct 29 05:47:53 EDT 2009

Display only 20 entries per column in man page listings, this avoids scrillbars most of the time.

--- a/apps/wman/page_list.tpl
+++ b/apps/wman/page_list.tpl
@@ -5,7 +5,7 @@
 %{
 wman_ls_pages $wman_cat_path \
     | awk -F/ '{ print "<li><a href=\""$(NF)"\">"$(NF)"</a></li>" }
-    NR%28 == 0 { print "</ul><ul style=\"float: left\">" }'
+    NR%20 == 0 { print "</ul><ul style=\"float: left\">" }'
 %}
 </ul>