diff options
| author | Matthieu Baerts (NGI0) <matttbe@kernel.org> | 2025-09-13 15:29:52 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-09-15 18:27:19 -0700 |
| commit | 515c0ead788f4118a91b3ae55fe51f95543553ec (patch) | |
| tree | 2fff4e3d76e62f1576d6291bf98c3a9eb9358751 /rust/helpers/build_bug.c | |
| parent | a51126424f75a7b44b11f7b821f6abb0b78bd931 (diff) | |
netlink: specs: team: avoid mangling multilines doc
By default, strings defined in YAML at the next line are folded:
newlines are replaced by spaces. Here, the newlines are there for a
reason, and should be kept in the output.
This can be fixed by adding the '|' symbol to use the "literal" style.
This issue was introduced by commit 387724cbf415 ("Documentation:
netlink: add a YAML spec for team"), but visible in the doc only since
the parent commit.
To avoid warnings when generating the HTML output, and to look better,
the code layout is now in a dedicated code block, which requires '::'
and a new blank line. Just for a question of uniformity, a new blank
line is also added after the code block.
Suggested-by: Donald Hunter <donald.hunter@gmail.com>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250913-net-next-ynl-attr-doc-rst-v3-2-4f06420d87db@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions
