diff --git a/Sources/HTMLStreamer/BlockState.swift b/Sources/HTMLStreamer/BlockState.swift index 39491e6..c409adc 100644 --- a/Sources/HTMLStreamer/BlockState.swift +++ b/Sources/HTMLStreamer/BlockState.swift @@ -19,11 +19,7 @@ import Foundation */ struct BlockStateMachine { - var blockState: BlockState = .start { - didSet { - print("new state: \(blockState)") - } - } + var blockState: BlockState = .start let blockBreak: String let lineBreak: String let listIndentForContentOutsideItem: String @@ -34,7 +30,6 @@ struct BlockStateMachine { extension BlockStateMachine { mutating func startOrEndBlock() { - print("start/end block") switch blockState { case .start: break @@ -83,7 +78,6 @@ extension BlockStateMachine { } mutating func continueBlock(char: UnicodeScalar) -> Bool { - print("continue block: \(char.debugDescription)") let isNewline = char == "\n" let isWhitespace = isNewline || isWhitespace(char) switch blockState { @@ -298,7 +292,6 @@ extension BlockStateMachine { } mutating func breakTag() { - print("break tag") switch blockState { case .start: break diff --git a/Tests/HTMLStreamerTests/AttributedStringConverterTests.swift b/Tests/HTMLStreamerTests/AttributedStringConverterTests.swift index b413996..0fef3ce 100644 --- a/Tests/HTMLStreamerTests/AttributedStringConverterTests.swift +++ b/Tests/HTMLStreamerTests/AttributedStringConverterTests.swift @@ -561,6 +561,15 @@ final class AttributedStringConverterTests: XCTestCase { XCTAssertEqual(convert("
a
b
a
b