🐛 Bug: `sentences-per-line/one`: fixer incorrectly handles spaces between sentences
status: accepting prstype: bug
### Bug Report Checklist
- [x] I have tried restarting my IDE and the issue persists.
- [x] I have pulled the latest `main` branch of the repository.
- [x] I have [searched for related issues](https://github.com/JoshuaKGoldberg/sentences-per-line/issues?q=is%3Aissue) and found none that matched my issue.
### Expected
Thank you for creating this plugin - I find this concept improving Markdown readability.
This source file
```md
Foo. Bar. Baz. Foo2. Bar2.
```
gets transformed by the autofix on the entire file (after multiple tranformations) to
```md
Foo.
Bar.
Baz
.
Foo2
.
Bar2.
```
which breaks the sentences structure. Note also there's an extra space left only after the first sentence.
### Actual
I expect the autofix to remove any extra spaces and to not break the sentences, i.e. transform the given input to:
```md
Foo.
Bar.
Baz.
Foo2.
Bar2.
```
### Additional Info
_No response_
3 条评论