Treat all parameter descriptions as markdown

in the web UI
This commit is contained in:
Florian Festi 2022-01-03 13:29:12 +01:00
parent f18462585b
commit 4ba1768d29
3 changed files with 6 additions and 2 deletions

View File

@ -42,7 +42,7 @@ With lid:
help="Radius of the corners in mm") help="Radius of the corners in mm")
self.argparser.add_argument( self.argparser.add_argument(
"--wallpieces", action="store", type=int, default=1, "--wallpieces", action="store", type=int, default=1,
choices=[1, 2, 3, 4], help="# pieces of outer wall") choices=[1, 2, 3, 4], help="\# pieces of outer wall")
self.argparser.add_argument( self.argparser.add_argument(
"--edge_style", action="store", "--edge_style", action="store",
type=boxes.ArgparseEdgeType("fFh"), choices=list("fFh"), type=boxes.ArgparseEdgeType("fFh"), choices=list("fFh"),

View File

@ -158,7 +158,7 @@ class BServer:
default = defaults.get(name, None) default = defaults.get(name, None)
row = """<tr><td>%s</td><td>%%s</td><td>%s</td></tr>\n""" % \ row = """<tr><td>%s</td><td>%%s</td><td>%s</td></tr>\n""" % \
(_(viewname), "" if not a.help else _(a.help)) (_(viewname), "" if not a.help else markdown.markdown(_(a.help)))
if (isinstance(a, argparse._StoreAction) and if (isinstance(a, argparse._StoreAction) and
hasattr(a.type, "html")): hasattr(a.type, "html")):
input = a.type.html(name, default or a.default, _) input = a.type.html(name, default or a.default, _)

View File

@ -71,6 +71,10 @@ table {
margin-left: 30px; margin-left: 30px;
} }
table tr p {
display: inline;
}
/* Container */ /* Container */
.container { .container {