How do I force a line break/new line in rst? I don't want it to be a new paragraph (ie. no additional spaces between the lines), I just want the text to start on a new line. Thanks!
相关问题
- Numbered :math: equations in reStructuredText
- Style attribute vs setting ID and external Css
- Skipping heading levels in reStructuredText
- Is it possible to write in a two-columns style in
- sphinx remove chapter title in my pdf with latexpd
相关文章
- reStructuredText: README.rst not parsing on PyPI
- python rtype docstring/restructured text for class
- How to make XML strings bold, underlined etc?
- How do I create a new line with reStructuredText?
- Aligning the text in Google Maps Marker snippet
- reST: inline links with arbitrary titles?
- PHP: How to keep line-breaks using nl2br() with HT
- How to check YML grammar is correct (gitlab.yml)
The line block syntax also worked, and was a bit cleaner:
| This is a line | This is another line | Another new line
We added a substitution to our global.rst file so we didn't have to add raw tags all the time.
This way we can just use |br| when we need a line break.
According to the docs for docutils
raw
role, you can do this:You will need to define the
raw
role first:As the example states, consider line block syntax first.