# Documentation If you repeat Sphinx directives they are separated by an empty line. For example: https://github.com/python/cpython/blob/f70395786f6da2412d7406606feb64347fc71262/Doc/library/typing.rst?plain=1#L1974-L1975 Renders with a newline:  Could be changed to: ```rst .. data:: ParamSpecArgs ParamSpecKwargs ``` Which renders without a newline:  Regexes: - ` \.\. attribute::.*\n \.\. attribute::`: 35 matches - ` \.\. data::.*\n \.\. data::`: 2 matches - ` \.\. decorator::.*\n \.\. decorator::`: 1 match - ` \.\. index::.*\n \.\. index::`: 3 matches - ` \.\. method::.*\n \.\. method::`: 3 matches - ~` \.\. versionadded::.*\n \.\. versionadded::`: 1 match~ - ~` \.\. versionchanged::.*\n \.\. versionchanged::`: 1 match~ - `\.\. attribute::.*\n\.\. attribute::`: 4 matches - `\.\. data::.*\n\.\. data::`: 6 matches - `\.\. describe::.*\n\.\. describe::`: 1 match - `\.\. exception::.*\n\.\. exception::`: 1 match - `\.\. function::.*\n\.\. function::`: 11 matches - `\.\. index::.*\n\.\. index::`: 2 matches - `\.\. method::.*\n\.\. method::`: 2 matches - `\.\. module::.*\n\.\. module::`: 1 match - `\.\. moduleauthor::.*\n\.\. moduleauthor::`: 13 matches - `\.\. opcode::.*\n\.\. opcode::`: 1 match - `\.\. option::.*\n\.\. option::`: 17 matches - `\.\. sectionauthor::.*\n\.\. sectionauthor::`: 26 matches - ~`\.\. versionadded::.*\n\.\. versionadded::`: 4 matches~ <!-- gh-linked-prs --> ### Linked PRs * gh-118154 * gh-118155 <!-- /gh-linked-prs -->
Documentation
If you repeat Sphinx directives they are separated by an empty line. For example:
cpython/Doc/library/typing.rst
Lines 1974 to 1975 in f703957
Renders with a newline:
Could be changed to:
Which renders without a newline:
Regexes:
\.\. attribute::.*\n \.\. attribute::: 35 matches\.\. data::.*\n \.\. data::: 2 matches\.\. decorator::.*\n \.\. decorator::: 1 match\.\. index::.*\n \.\. index::: 3 matches\.\. method::.*\n \.\. method::: 3 matches\.\. versionadded::.*\n \.\. versionadded::: 1 match\.\. versionchanged::.*\n \.\. versionchanged::: 1 match\.\. attribute::.*\n\.\. attribute::: 4 matches\.\. data::.*\n\.\. data::: 6 matches\.\. describe::.*\n\.\. describe::: 1 match\.\. exception::.*\n\.\. exception::: 1 match\.\. function::.*\n\.\. function::: 11 matches\.\. index::.*\n\.\. index::: 2 matches\.\. method::.*\n\.\. method::: 2 matches\.\. module::.*\n\.\. module::: 1 match\.\. moduleauthor::.*\n\.\. moduleauthor::: 13 matches\.\. opcode::.*\n\.\. opcode::: 1 match\.\. option::.*\n\.\. option::: 17 matches\.\. sectionauthor::.*\n\.\. sectionauthor::: 26 matches\.\. versionadded::.*\n\.\. versionadded::: 4 matchesLinked PRs
ParamSpecArgsandParamSpecKwargsintyping.rst#118154ParamSpecArgsandParamSpecKwargsintyping.rst(GH-118154) #118155