We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9e6c28 commit cfa0fc1Copy full SHA for cfa0fc1
Aztec/Classes/TextKit/LayoutManager.swift
@@ -368,7 +368,7 @@ extension LayoutManager {
368
}
369
let underlinedString = textStorage.attributedSubstring(from: glyphRange).string
370
var updatedGlyphRange = glyphRange
371
- if glyphRange.endLocation == lineGlyphRange.endLocation,
+ if glyphRange.endLocation == lineGlyphRange.endLocation,
372
underlinedString.hasSuffix(String.init(.paragraphSeparator)) || underlinedString.hasSuffix(String.init(.lineSeparator)) || underlinedString.hasSuffix(String.init(.carriageReturn)) || underlinedString.hasSuffix(String.init(.lineFeed))
373
{
374
updatedGlyphRange = NSRange(location: glyphRange.location, length: glyphRange.length - 1)
0 commit comments