diff options
author | jeff <jeff> | 2002-02-22 23:18:34 +0000 |
---|---|---|
committer | jeff <jeff> | 2002-02-22 23:18:34 +0000 |
commit | b50b2e5f94774268c271484f9c07bfe316f95527 (patch) | |
tree | 2dec4f5a1b4ed14bc2ae663acd6691e24c1cda9b /conf | |
parent | f96fd39dcc9c2563f8ba2976f7b9d23c0b3fcc29 (diff) |
add some reporting features
Diffstat (limited to 'conf')
-rw-r--r-- | conf/report_template | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/conf/report_template b/conf/report_template new file mode 100644 index 000000000..9c6bb2b4a --- /dev/null +++ b/conf/report_template @@ -0,0 +1,14 @@ +{ sprintf("%-19s", "Page $page of $total_pages"); } { + my $spacer = (40 - length($title) > 0) ? 40 - length($title) : 0; + $spacer = int($spacer / 2); + my $titlelen = 40 - $spacer; + sprintf("%*s%-*s", $spacer, " ", $titlelen, $title); + } { use Date::Format; time2str("%x %X", $date); } + + +{ + join("\n", map { $_ } report_lines(57)); +} + + + |