Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up some weird command strings #73315

Merged
merged 1 commit into from
Jun 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions src/librustdoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,8 @@ fn opts() -> Vec<RustcOptGroup> {
o.optmulti(
"",
"passes",
"list of passes to also run, you might want \
to pass it multiple times; a value of `list` \
will print available passes",
"list of passes to also run, you might want to pass it multiple times; a value of \
`list` will print available passes",
"PASSES",
)
}),
Expand Down Expand Up @@ -248,8 +247,8 @@ fn opts() -> Vec<RustcOptGroup> {
"e",
"extend-css",
"To add some CSS rules with a given file to generate doc with your \
own theme. However, your theme might break if the rustdoc's generated HTML \
changes, so be careful!",
own theme. However, your theme might break if the rustdoc's generated HTML \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this cause the text to have double space?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know the \ above followed by a newline will "eat" all whitespace in the next line(s) until a non-space character, so indenting it more is not an issue.

changes, so be careful!",
"PATH",
)
}),
Expand All @@ -262,7 +261,7 @@ fn opts() -> Vec<RustcOptGroup> {
"",
"playground-url",
"URL to send code snippets to, may be reset by --markdown-playground-url \
or `#![doc(html_playground_url=...)]`",
or `#![doc(html_playground_url=...)]`",
"URL",
)
}),
Expand All @@ -276,8 +275,7 @@ fn opts() -> Vec<RustcOptGroup> {
o.optflag(
"",
"sort-modules-by-appearance",
"sort modules by where they appear in the \
program, rather than alphabetically",
"sort modules by where they appear in the program, rather than alphabetically",
)
}),
stable("theme", |o| {
Expand Down Expand Up @@ -358,7 +356,7 @@ fn opts() -> Vec<RustcOptGroup> {
"",
"static-root-path",
"Path string to force loading static files from in output pages. \
If not set, uses combinations of '../' to reach the documentation root.",
If not set, uses combinations of '../' to reach the documentation root.",
"PATH",
)
}),
Expand Down