Skip to content

Commit f4e77da

Browse files
authored
[CLI] Fix command generate-doc (#1568)
1 parent 28bd21d commit f4e77da

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Fixed
1111

1212
- Fix analyzer [RCS1090](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1090) ([PR](https://github.com/dotnet/roslynator/pull/1566))
13+
- [CLI] Fix command `generate-doc` ([PR](https://github.com/dotnet/roslynator/pull/1568))
1314

1415
### Change
1516

src/Documentation/TextUtility.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static string RemoveLeadingTrailingNewLine(
3535
}
3636

3737
if (trailingNewLine
38+
&& length > startIndex
3839
&& s[length - 1] == '\n')
3940
{
4041
length--;

0 commit comments

Comments
 (0)