Closed robertodr closed 5 years ago
Looks great! One more issue, though:
Long docstrings are linebreaked in the input.rst
file, which leads to the following message using rst2html.py input.rst >input.html
input.rst:459: (WARNING/2) Definition list ends without a blank line; unexpected unindent.
which also ends up in the produced html. The warning goes away if I manually unbreak these lines.
How long is long? I cannot reproduce this.
Hmm, turns out it line breaks at the same place that I do in the template.yml
file, like this
keywords:
- name: numerically_exact
type: bool
default: false
docstring: |
This will use MPI algorithms that guarantees that the output is
invariant wrt the number of MPI processes.
OK, I see now!
I now replace newline characters in the docstring
with spaces, so the string is stitched back together. Final formatting could be a bit crappy though, as very long lines will exceed their box... I'd leave format beautification for later though.
Documentation looks a bit nicer and fixes the repetitions @stigrj noticed with multiple keywords.