mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
| datasource | package | from | to | | ---------- | ------------------------------- | ------ | ------ | | go | github.com/jedib0t/go-pretty/v6 | v6.7.5 | v6.7.8 | Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com> Co-authored-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
22 lines
844 B
Go
22 lines
844 B
Go
package table
|
|
|
|
// HTMLOptions defines the global options to control HTML rendering.
|
|
type HTMLOptions struct {
|
|
ConvertColorsToSpans bool // convert ANSI escape sequences to HTML <span> tags with CSS classes? EscapeText will be true if this is true.
|
|
CSSClass string // CSS class to set on the overall <table> tag
|
|
EmptyColumn string // string to replace "" columns with (entire content being "")
|
|
EscapeText bool // escape text into HTML-safe content?
|
|
Newline string // string to replace "\n" characters with
|
|
}
|
|
|
|
var (
|
|
// DefaultHTMLOptions defines sensible HTML rendering defaults.
|
|
DefaultHTMLOptions = HTMLOptions{
|
|
ConvertColorsToSpans: true,
|
|
CSSClass: DefaultHTMLCSSClass,
|
|
EmptyColumn: " ",
|
|
EscapeText: true,
|
|
Newline: "<br/>",
|
|
}
|
|
)
|