We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c09a14f commit ed2f83fCopy full SHA for ed2f83f
1 file changed
Sources/Runestone/Library/DefaultStringAttributes.swift
@@ -9,7 +9,9 @@ struct DefaultStringAttributes {
9
10
func apply(to attributedString: NSMutableAttributedString) {
11
let paragraphStyle = NSMutableParagraphStyle()
12
- paragraphStyle.tabStops = []
+ paragraphStyle.tabStops = (0 ..< 20).map { index in
13
+ NSTextTab(textAlignment: .natural, location: CGFloat(index) * tabWidth)
14
+ }
15
paragraphStyle.defaultTabInterval = tabWidth
16
let range = NSRange(location: 0, length: attributedString.length)
17
let attributes: [NSAttributedString.Key: Any] = [
0 commit comments