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

Fix rustdoc whitespace parsing #7364

Merged
merged 1 commit into from Jun 18, 2021
Merged

Fix rustdoc whitespace parsing #7364

merged 1 commit into from Jun 18, 2021

Conversation

vlad20012
Copy link
Member

Previously, whitespace on the second line of this fragment was incorrectly parsed as 2 PsiWhiteSpace elements (" " and "\n"). Now it is parsed as a single " \n" whitespace element. The bug is since #6455

Replace . to a space

///.Extra space here:
///.
///
fn foo() {}

changelog: Should not be mentioned if in the same release as #6455

Previously, whitespace on the second line of this fragment
was incorrectly parsed as 2
`PsiWhiteSpace` elements (" " and "\n").
Now it is parsed as a single " \n" whitespace element.

Replace `.` to a space

```
///.Extra space here:
///.
///
fn foo() {}
```
@vlad20012 vlad20012 force-pushed the fix-rustdoc-whitespace-parsing branch from 39a9e17 to 2debe26 Compare June 18, 2021 13:13
@vlad20012
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 18, 2021

Build succeeded:

@bors bors bot merged commit b43f45e into master Jun 18, 2021
@bors bors bot deleted the fix-rustdoc-whitespace-parsing branch June 18, 2021 16:34
@github-actions github-actions bot added this to the v150 milestone Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant