[checkmk-commits] Check_MK Git: check_mk: Small fix in doc/helpers

git version control git at mathias-kettner.de
Sun Nov 18 10:29:18 CET 2012


Module: check_mk
Branch: master
Commit: 9c0f22391e809823ca3ec86b7a104ac11439eef3
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9c0f22391e809823ca3ec86b7a104ac11439eef3

Author: Mathias Kettner <mk at 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



More information about the checkmk-commits mailing list