mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Automatically add insert a new line after headers
This commit is contained in:
committed by
Stefan Ceriu
parent
f790077861
commit
92685fbb50
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user