From 279c56f373e152cd035974c56206687a7b0c1b4a Mon Sep 17 00:00:00 2001 From: Ed Stephinson Date: Tue, 23 Jan 2024 10:47:13 +0000 Subject: [PATCH] Add indent property to a rich text list --- block_rich_text.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/block_rich_text.go b/block_rich_text.go index c1dd402ed..9bd736765 100644 --- a/block_rich_text.go +++ b/block_rich_text.go @@ -120,17 +120,19 @@ type RichTextList struct { Type RichTextElementType `json:"type"` Style RichTextListStyle `json:"style"` Elements []RichTextSection `json:"elements"` + Indent int `json:"indent"` } func (l RichTextList) RichTextElementType() RichTextElementType { return l.Type } -func NewRichTextList(style RichTextListStyle, elements ...RichTextSection) *RichTextList { +func NewRichTextList(style RichTextListStyle, indentation int, elements ...RichTextSection) *RichTextList { return &RichTextList{ Type: RTEList, Style: style, Elements: elements, + Indent: indentation, } }