forked from tokio-rs/prost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't add extra space before RustDoc comments
In v0.11.0 the `sanitize_line` function was updated to add a space to the beginning of non-empty RustDoc comments, but often those comments already contain a space. This commit updates the check to ensure the extra space is only added if it doesn't already exist. We also need to check that the line doesn't start with _multiple_ spaces, as in the case of multi-line list items in Markdown docs. These items _will_ need to be indented to match their list marker's indentation. Note that this commit actually modifies the `protobuf.rs` file as well because code blocks inside RustDoc comments were previously over-indented. Fixes tokio-rs#693.
- Loading branch information
Showing
2 changed files
with
174 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.