Skip to content

Commit 4bd9bc9

Browse files
committed
chore: lint
1 parent ddc925e commit 4bd9bc9

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/label.ios.ts

+15-15
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ export class Label extends LabelBase {
4242
view.userInteractionEnabled = true;
4343
view.dataDetectorTypes = UIDataDetectorTypes.All;
4444
view.textContainerInset = {
45-
top:0,
46-
left:0,
47-
bottom:0,
48-
right:0
45+
top: 0,
46+
left: 0,
47+
bottom: 0,
48+
right: 0
4949
};
5050
return view;
5151
}
@@ -145,18 +145,18 @@ export class Label extends LabelBase {
145145
// [DTDefaultLineBreakMode]: kCTLineBreakByWordWrapping
146146
} as any;
147147
this.htmlText = NSMutableAttributedString.alloc().initWithHTMLDataOptionsDocumentAttributes(nsData, options, null);
148-
this.htmlText.enumerateAttributesInRangeOptionsUsingBlock({ location: 0, length: this.htmlText.length }, NSAttributedStringEnumerationReverse, (
149-
attributes: NSDictionary<any, any>,
150-
range,
151-
stop
152-
) => {
153-
if (!!attributes.valueForKey('DTGUID')) {
154-
// We need to remove this attribute or links are not colored right
155-
//
156-
// @see https://github.com/Cocoanetics/DTCoreText/issues/792
157-
this.htmlText.removeAttributeRange('CTForegroundColorFromContext', range);
148+
this.htmlText.enumerateAttributesInRangeOptionsUsingBlock(
149+
{ location: 0, length: this.htmlText.length },
150+
NSAttributedStringEnumerationReverse,
151+
(attributes: NSDictionary<any, any>, range, stop) => {
152+
if (!!attributes.valueForKey('DTGUID')) {
153+
// We need to remove this attribute or links are not colored right
154+
//
155+
// @see https://github.com/Cocoanetics/DTCoreText/issues/792
156+
this.htmlText.removeAttributeRange('CTForegroundColorFromContext', range);
157+
}
158158
}
159-
});
159+
);
160160
// console.log('updateHTMLString', this, this.html);
161161
// const nsString = NSString.stringWithString(htmlString);
162162
// // console.log('updateHTMLString1');

0 commit comments

Comments
 (0)