File tree Expand file tree Collapse file tree
Aztec/Classes/NSAttributedString/Conversions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public class HTMLConverter {
2323
2424 /// If a value is set the character set will be used to replace any last empty line created by the converter.
2525 ///
26- open var characterToReplaceLastEmtpyLine : Character ?
26+ open var characterToReplaceLastEmptyLine : Character ?
2727
2828 let htmlToTree = HTMLParser ( )
2929
@@ -60,7 +60,7 @@ public class HTMLConverter {
6060 let defaultAttributes = defaultAttributes ?? [ : ]
6161 var attributedString = treeToAttributedString. serialize ( rootNode, defaultAttributes: defaultAttributes)
6262
63- if let characterToUse = characterToReplaceLastEmtpyLine {
63+ if let characterToUse = characterToReplaceLastEmptyLine {
6464 attributedString = replaceLastEmptyLine ( in: attributedString, with: characterToUse)
6565 }
6666
Original file line number Diff line number Diff line change @@ -508,7 +508,7 @@ class TextStorageTests: XCTestCase {
508508
509509 XCTAssertEqual ( expectedResult, result)
510510
511- storage. htmlConverter. characterToReplaceLastEmtpyLine = Character ( . zeroWidthSpace)
511+ storage. htmlConverter. characterToReplaceLastEmptyLine = Character ( . zeroWidthSpace)
512512
513513 storage. setHTML ( initialHTML, defaultAttributes: defaultAttributes)
514514 expectedResult = String ( . zeroWidthSpace)
You can’t perform that action at this time.
0 commit comments