Module: check_mk
Branch: master
Commit: 53e4cdad071df32ec5f9c33e4a64dc52b8cead5d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=53e4cdad071df3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Oct 22 17:45:04 2014 +0200
Fixed layout of manpages with long check names
---
modules/catalog.py | 23 ++++++++++++-----------
modules/check_mk.py | 8 ++++----
2 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/modules/catalog.py b/modules/catalog.py
index 5452d16..4efae9f 100644
--- a/modules/catalog.py
+++ b/modules/catalog.py
@@ -27,18 +27,19 @@
manpage_catalog_titles = {
"hw" : "Appliances, other dedicated Hardware",
"environment" : "Environmental sensors",
- "akcp" : "AKCP",
- "allnet" : "ALLNET",
- "betternet" : "better networks",
- "carel" : "CAREL",
- "eaton" : "Eaton",
- "emerson" : "EMERSON",
- "hwg" : "HW group",
- "rittal" : "Rittal",
+ "akcp" : "AKCP",
+ "allnet" : "ALLNET",
+ "betternet" : "better networks",
+ "carel" : "CAREL",
+ "eaton" : "Eaton",
+ "emerson" : "EMERSON",
+ "hwg" : "HW group",
+ "rittal" : "Rittal",
"sensatronics" : "Sensatronics",
- "stulz" : "STULZ",
- "wut" : "Wiesemann & Theis",
- "wagner" : "WAGNER Group",
+ "socomec" : "Socomec",
+ "stulz" : "STULZ",
+ "wut" : "Wiesemann & Theis",
+ "wagner" : "WAGNER Group",
"other" : "Other devices",
"network" : "Networking (Switches, Routers, etc.)",
"alcatel" : "Alcatel",
diff --git a/modules/check_mk.py b/modules/check_mk.py
index bac4a22..ba2c2b4 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -3858,7 +3858,7 @@ def show_check_manual(checkname):
return re.sub('(?<!{){', bold_color, re.sub('(?<!})}',
tty_normal + attr, line))
def print_sectionheader(left, right):
- print_splitline(title_color_left, "%-19s" % left,
title_color_right, right)
+ print_splitline(title_color_left, "%-25s" % left,
title_color_right, right)
def print_subheader(line):
empty_line()
@@ -3990,12 +3990,12 @@ def show_check_manual(checkname):
"solaris":"Solaris",
"windows":"Windows", "snmp":"SNMP",
"openvms" : "OpenVMS", "vsphere" :
"vSphere" }
.get(agent, agent.upper()))
- print_splitline(header_color_left, "Supported Agents: ",
header_color_right, ", ".join(ags))
+ print_splitline(header_color_left, "Supported Agents: ",
header_color_right, ", ".join(ags))
distro = header['distribution']
if distro == 'check_mk':
distro = "official part of Check_MK"
- print_splitline(header_color_left, "Distribution: ",
header_color_right, distro)
- print_splitline(header_color_left, "License: ",
header_color_right, header['license'])
+ print_splitline(header_color_left, "Distribution: ",
header_color_right, distro)
+ print_splitline(header_color_left, "License: ",
header_color_right, header['license'])
empty_line()
print_textbody(header['description'])