Lists were not correctly indented before,
which means that if you wanted to add
multiline content inside the docs, it would
not be formatted properly and the default
would also be out of place. For example:
Would either not indent or add the default
line wrongly:
Options are:
* :foo
* :bar The default value is :bar.
This PR fixes it so lists are naturally indented
and the nest_level hack is no longer necessary.
We also remove types printing in complex cases,
because it ends up verbose and/or showing duplicate information.
Lists were not correctly indented before, which means that if you wanted to add multiline content inside the docs, it would not be formatted properly and the default would also be out of place. For example:
Would either not indent or add the default line wrongly:
This PR fixes it so lists are naturally indented and the
nest_level
hack is no longer necessary. We also remove types printing in complex cases, because it ends up verbose and/or showing duplicate information.