From fc079b6489240673348db06cee87b7babebf3b52 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Fri, 1 Mar 2019 10:34:29 +0900 Subject: html.py: enable to setup html default cols/rows For selfish boys & girls Signed-off-by: Kuninori Morimoto --- .config.sample | 2 ++ scripts/html.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.config.sample b/.config.sample index 2127c03..1d8d61a 100644 --- a/.config.sample +++ b/.config.sample @@ -1,6 +1,8 @@ viewer:less -RXE git-linux:/home/morimoto/WORK/linux +html-default-cols:200 +html-default-rows:300 # color = escape sequence key:33 diff --git a/scripts/html.py b/scripts/html.py index 9360974..446c200 100755 --- a/scripts/html.py +++ b/scripts/html.py @@ -140,7 +140,7 @@ class periject_html(base.base): # | | | # |menu|body| # | | | - with html("frameset", {"cols":"200,*"}): + with html("frameset", {"cols":"{},*".format(self.config("html-default-cols"))}): html("frame", {"src":"./html/menu.html", "name":"menu"}).print() html("frame", {"src":"./html/subindex.html", "name":"body"}).print() @@ -153,7 +153,7 @@ class periject_html(base.base): # ------- # body # ------- - with html("frameset", {"rows":"300,*"}): + with html("frameset", {"rows":"{},*".format(self.config("html-default-rows"))}): html("frame", {"src":"./summary.html", "name":"summary"}).print() html("frame", {"src":"./body.html", "name":"subbody"}).print() -- cgit v1.2.3