Treat all parameter descriptions as markdown
in the web UI
This commit is contained in:
parent
f18462585b
commit
4ba1768d29
|
@ -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"),
|
||||||
|
|
|
@ -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, _)
|
||||||
|
|
|
@ -71,6 +71,10 @@ table {
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table tr p {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
/* Container */
|
/* Container */
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
|
Loading…
Reference in New Issue