Module: check_mk
Branch: master
Commit: 9c0f22391e809823ca3ec86b7a104ac11439eef3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9c0f22391e8098…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Nov 18 09:56:20 2012 +0100
Small fix in doc/helpers
---
doc/helpers/figheader | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/doc/helpers/figheader b/doc/helpers/figheader
index 41abf0f..d94fc14 100755
--- a/doc/helpers/figheader
+++ b/doc/helpers/figheader
@@ -27,8 +27,10 @@ if sys.argv[1].startswith("-"):
width = 76
sepmid = sep + '-' * (width - len(sep) - 1) + '+'
-print first + '-' * (width - len(first) - 1) + '.'
-for line in os.popen("figlet -c -w %d '%s'" % (width - 7, "
".join(sys.argv[1:])), "r"):
+title = " ".join(sys.argv[1:])
+first_line = first + "-" + title
+print first_line + '-' * (width - len(first_line) - 1) + '.'
+for line in os.popen("figlet -c -w %d '%s'" % (width - 7, title),
"r"):
line = line[:-1]
print (cont + "|%-" + str(width - len(cont) - 2) + "s|") % line
print sepmid