Skip to content

Commit 2b9fd78

Browse files
authored
Merge pull request #32392 from allevato/windows-comment-newlines
Fix Windows CR-LF detection in libMarkup.
2 parents 6d2d668 + bbd000f commit 2b9fd78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Markup/LineList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static unsigned measureASCIIArt(StringRef S, unsigned NumLeadingSpaces) {
7878

7979
if (S.startswith(" * "))
8080
return NumLeadingSpaces + 3;
81-
if (S.startswith(" *\n") || S.startswith(" *\n\r"))
81+
if (S.startswith(" *\n") || S.startswith(" *\r\n"))
8282
return NumLeadingSpaces + 2;
8383
return 0;
8484
}

0 commit comments

Comments
 (0)