mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-12 03:20:23 +08:00
feat: enable table customization and styles for paragraphs (#39)
This commit is contained in:
@@ -83,6 +83,15 @@ func (r *Run) Highlight(val string) *Run {
|
||||
return r
|
||||
}
|
||||
|
||||
func (r *Run) Strike(val bool) *Run {
|
||||
trueFalseStr := "false"
|
||||
if val {
|
||||
trueFalseStr = "true"
|
||||
}
|
||||
r.RunProperties.Strike = &Strike{Val: trueFalseStr}
|
||||
return r
|
||||
}
|
||||
|
||||
// AddTab add a tab in front of the run
|
||||
func (r *Run) AddTab() *Run {
|
||||
r.Children = append(r.Children, &Tab{})
|
||||
|
||||
Reference in New Issue
Block a user