diff --git a/ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift b/ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift index 89daec027..640c1a8ee 100644 --- a/ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift +++ b/ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift @@ -122,6 +122,7 @@ struct AttributedStringBuilderV2: AttributedStringBuilderProtocol { let level = max(3, Int(String(tag.dropFirst())) ?? 1) let size: CGFloat = fontPointSize + CGFloat(6 - level) * 2 content = attributedString(from: childElement, preserveFormatting: preserveFormatting, listTag: listTag, listIndex: &childIndex, indentLevel: indentLevel) + content.append(NSAttributedString(string: "\n")) content.setFontPreservingSymbolicTraits(UIFont.boldSystemFont(ofSize: size)) case "p", "div": diff --git a/ElementX/Sources/Other/HTMLParsing/HTMLFixtures.swift b/ElementX/Sources/Other/HTMLParsing/HTMLFixtures.swift index bd9a13c9d..ca82c3b24 100644 --- a/ElementX/Sources/Other/HTMLParsing/HTMLFixtures.swift +++ b/ElementX/Sources/Other/HTMLParsing/HTMLFixtures.swift @@ -28,11 +28,11 @@ enum HTMLFixtures: String, CaseIterable { """ case .headers: """ -