We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2445be3 commit f0c4709Copy full SHA for f0c4709
1 file changed
util/runparams.py
@@ -48,7 +48,7 @@
48
import os
49
import re
50
from util import msg
51
-
+import textwrap
52
53
# some utility functions to automagically determine what the data
54
# types are
@@ -316,8 +316,15 @@ def print_sphinx_tables(self, outfile="params-sphinx.inc"):
316
317
for key in keys:
318
_, option = key.split('.')
319
+ descr = textwrap.wrap(self.param_comments[key].strip(), 50)
320
+ if len(descr) == 0:
321
+ descr = [" "]
322
+
323
f.write(entry.format(option, "``{}``".format(str(self.params[key]).strip()),
- self.param_comments[key].strip()))
324
+ descr[0]))
325
+ if len(descr) > 1:
326
+ for line in descr[1:]:
327
+ f.write(entry.format("", "", line))
328
f.write(separator)
329
330
f.write("\n")
0 commit comments