yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05914
Re: newline in class attribute docs
> sometext n Example:
>
> creates no new line (no matter if there is space or not between n and surrounded words)
>
> sometextnnExample:
>
> creates new paragraph, but with space between the end of previous and the beginning of next paragraph, what I did not want..
OK, that is a confusion on your side. You create new paragraph by an
empty line (which means two linebreaks, i.e. \n\n). If you just break
line, the text still continues -- like in TeX, newline has no effect,
while empty line creates a new paragraph. The \n\n does not create a new
paragraph with and empty line in-between, but a new paragraph, which has
a vertical indent as defined in the stylesheet.
> I tried to solve this "problem" using _extraDocs.py, (adding for example Peri3dController.stress there)
> wrapper.Peri3dController.stress.__doc__=r'''text'''
> but this imply error in startup of yade:
It will be no different in extradocs, python just gives you an easier
way how to write plaintext, but sphinx will interpret it just the same.
HTH, v
Follow ups
References