From 5e55f526ca57de376e458828eddc3f04b17e8926 Mon Sep 17 00:00:00 2001
From: Max Heller
Date: Sat, 15 Feb 2025 08:10:14 -0500
Subject: [PATCH] Fix man page with paragraph outside of `option` block
---
src/doc/man/cargo-publish.md | 2 +-
src/doc/man/generated_txt/cargo-publish.txt | 15 ++++++---------
src/doc/src/commands/cargo-publish.md | 13 ++++++-------
src/etc/man/cargo-publish.1 | 9 +++++----
4 files changed, 18 insertions(+), 21 deletions(-)
diff --git a/src/doc/man/cargo-publish.md b/src/doc/man/cargo-publish.md
index 5c816b182fc..d2caeffb9e0 100644
--- a/src/doc/man/cargo-publish.md
+++ b/src/doc/man/cargo-publish.md
@@ -95,13 +95,13 @@ SPEC format. This flag may be specified multiple times and supports common Unix
glob patterns like `*`, `?` and `[]`. However, to avoid your shell accidentally
expanding glob patterns before Cargo handles them, you must use single quotes or
double quotes around each pattern.
-{{/option}}
Selecting more than one package with this option is unstable and available only
on the
[nightly channel](https://doc.rust-lang.org/book/appendix-07-nightly-rust.html)
and requires the `-Z package-workspace` flag to enable.
See for more information.
+{{/option}}
{{#option "`--workspace`" }}
{{actionverb}} all members in the workspace.
diff --git a/src/doc/man/generated_txt/cargo-publish.txt b/src/doc/man/generated_txt/cargo-publish.txt
index 4b6d40affec..61271435e66 100644
--- a/src/doc/man/generated_txt/cargo-publish.txt
+++ b/src/doc/man/generated_txt/cargo-publish.txt
@@ -99,15 +99,12 @@ OPTIONS
them, you must use single quotes or double quotes around each
pattern.
-Selecting more than one package with this option is unstable and available only
-
-on the
-
-[nightly channel](https://doc.rust-lang.org/book/appendix-07-nightly-rust.html)
-
-and requires the `-Z package-workspace` flag to enable.
-
-See for more information.
+ Selecting more than one package with this option is unstable and
+ available only on the nightly channel
+ and
+ requires the -Z package-workspace flag to enable. See
+ for more
+ information.
--workspace
Publish all members in the workspace.
diff --git a/src/doc/src/commands/cargo-publish.md b/src/doc/src/commands/cargo-publish.md
index d38547791ed..58778a0ce29 100644
--- a/src/doc/src/commands/cargo-publish.md
+++ b/src/doc/src/commands/cargo-publish.md
@@ -102,14 +102,13 @@ See for more information.
SPEC format. This flag may be specified multiple times and supports common Unix
glob patterns like *
, ?
and []
. However, to avoid your shell accidentally
expanding glob patterns before Cargo handles them, you must use single quotes or
-double quotes around each pattern.
-
-
-Selecting more than one package with this option is unstable and available only
+double quotes around each pattern.
+Selecting more than one package with this option is unstable and available only
on the
-[nightly channel](https://doc.rust-lang.org/book/appendix-07-nightly-rust.html)
-and requires the `-Z package-workspace` flag to enable.
-See for more information.
+nightly channel
+and requires the -Z package-workspace
flag to enable.
+See https://github.com/rust-lang/cargo/issues/10948 for more information.
+
--workspace
Publish all members in the workspace.
diff --git a/src/etc/man/cargo-publish.1 b/src/etc/man/cargo-publish.1
index 613a1ecdbab..6f9fd22d43a 100644
--- a/src/etc/man/cargo-publish.1
+++ b/src/etc/man/cargo-publish.1
@@ -113,12 +113,13 @@ SPEC format. This flag may be specified multiple times and supports common Unix
glob patterns like \fB*\fR, \fB?\fR and \fB[]\fR\&. However, to avoid your shell accidentally
expanding glob patterns before Cargo handles them, you must use single quotes or
double quotes around each pattern.
-.RE
+.sp
Selecting more than one package with this option is unstable and available only
on the
-[nightly channel](https://doc.rust-lang.org/book/appendix-07-nightly-rust.html)
-and requires the `-Z package-workspace` flag to enable.
-See for more information.
+\fInightly channel\fR
+and requires the \fB\-Z package\-workspace\fR flag to enable.
+See for more information.
+.RE
.sp
\fB\-\-workspace\fR
.RS 4