line-height: 1.2;
}
.manpage {
- white-space: pre;
- b {
- font-weight: normal;
- color: @theme-color;
- }
- u {
- text-decoration: none;
- color: #507090;
+ text-align: center;
+ width: 100%;
+ div {
+ .inline-block;
+ white-space: pre;
+ text-align: left;
+ b {
+ font-weight: normal;
+ color: @theme-color;
+ }
+ u {
+ text-decoration: none;
+ color: #507090;
+ }
}
}
-.codehilite, .manpage {
+.codehilite, .manpage div {
border: 1px solid #E0E0E0;
margin: 0.4em auto (@line-height*1em);
padding: 0.4em 2%;
- width: 94%;
+ max-width: 94%;
overflow-x: auto;
pre { margin: 0; }
/* Small scrollbar */
}
}
.codehilite {
+ width: 94%;
/* Output of HtmlFormatter(linenos=True,style='colorful').get_style_defs() */
.hll { background-color: #ffffcc }
.c { color: #808080 } /* Comment */
git = subprocess.Popen(["git", "show", "%s:%s" % (version, path)], stdout=subprocess.PIPE)
man = subprocess.Popen(["man", "-l", "-"], stdin=git.stdout, stdout=subprocess.PIPE,
env={"MAN_KEEP_FORMATTING": "1",
- "MANWIDTH": "66"})
+ "MANWIDTH": "78"})
git.stdout.close()
output = man.communicate()[0]
- return "<div class='manpage'>%s</div>" % self.man(output)
+ return "<div class='manpage'><div>%s</div></div>" % self.man(output)
link = re.compile(r'\[\[manpage:([^\]]+)\]\]', re.UNICODE|re.MULTILINE)
text = link.sub(replace_content, text)