Skip to content

Commit cb29d33

Browse files
committed
Fix typo on variable name.
1 parent e2bf437 commit cb29d33

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Aztec/Classes/NSAttributedString/Conversions/HTMLConverter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

AztecTests/TextKit/TextStorageTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)