()
| 78 | } |
| 79 | |
| 80 | func (o Options) Any() bool { |
| 81 | return strings.TrimSpace(o.FontFamily) != "" || |
| 82 | o.FontSize != 0 || |
| 83 | strings.TrimSpace(o.TextColor) != "" || |
| 84 | strings.TrimSpace(o.Background) != "" || |
| 85 | strings.TrimSpace(o.Link) != "" || |
| 86 | o.ClearLink || |
| 87 | o.Code || |
| 88 | o.Bold || o.ClearBold || |
| 89 | o.Italic || o.ClearItalic || |
| 90 | o.Underline || o.ClearUnderline || |
| 91 | o.Strikethrough || o.ClearStrike || |
| 92 | strings.TrimSpace(o.Alignment) != "" || |
| 93 | o.LineSpacing != 0 || |
| 94 | strings.TrimSpace(o.SpacingMode) != "" || |
| 95 | o.HeadingLevel != nil || |
| 96 | strings.TrimSpace(o.NamedStyle) != "" || |
| 97 | o.Bullets || o.Ordered || strings.TrimSpace(o.BulletPreset) != "" || o.ClearBullets || |
| 98 | o.IndentStart != nil || o.IndentFirstLine != nil || o.IndentEnd != nil || |
| 99 | o.SpaceAbove != nil || o.SpaceBelow != nil || |
| 100 | o.KeepWithNext != nil || o.KeepLinesTogether != nil |
| 101 | } |
| 102 | |
| 103 | func BuildRequests(options Options, start, end int64, tabID string) ([]*docs.Request, error) { |
| 104 | if start < 0 || end <= start { |
no outgoing calls