File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Sources/ZMarkupParser/HTML/Processor Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,13 @@ struct HTMLElementMarkupComponentMarkupStyleVisitor: MarkupVisitor {
123123 if inheritStyle. font. size != nil {
124124 itemWidth = inheritStyle. font. sizeOf ( string: item) ? . width ?? 4
125125 } else {
126- itemWidth = MarkupStyle . default. font. sizeOf ( string: item) ? . width ?? 4
126+ itemWidth = ceil ( MarkupStyle . default. font. sizeOf ( string: item) ? . width ?? 4 )
127127 }
128128
129129 var tabStops : [ NSTextTab ] = [ . init( textAlignment: . left, location: headIndent) ]
130130 tabStops. append ( . init( textAlignment: . left, location: headIndent + itemWidth + indent) )
131131
132+ defaultStyle. paragraphStyle. defaultTabInterval = defaultStyle. paragraphStyle. defaultTabInterval ?? 28
132133 defaultStyle. paragraphStyle. tabStops = defaultStyle. paragraphStyle. tabStops ?? tabStops
133134 defaultStyle. paragraphStyle. headIndent = defaultStyle. paragraphStyle. headIndent ?? defaultStyle. paragraphStyle. tabStops? . last? . location
134135
You can’t perform that action at this time.
0 commit comments