Update code for objects
This commit is contained in:
@@ -16,7 +16,6 @@ func NewHeading (level int, text string) *Heading {
|
||||
if level > 2 { level = 2 }
|
||||
this := &Heading { TextBox: tomo.NewTextBox() }
|
||||
this.SetRole(tomo.R("objects", "Heading", fmt.Sprint(level)))
|
||||
tomo.Apply(this)
|
||||
this.SetText(text)
|
||||
return this
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user