html2text icon indicating copy to clipboard operation
html2text copied to clipboard

error: html2text

Open Han-YLun opened this issue 2 years ago • 0 comments

use this value(html will be render,so i save in code collaborative platform):

https://tech.io/snippet/wERVOek

use this code: value, err := html2text.FromString(value, html2text.Options{ PrettyTables: true, TextOnly: false, PrettyTablesOptions: &html2text.PrettyTablesOptions{ AutoFormatHeader: true, AutoWrapText: true, ReflowDuringAutoWrap: true, ColWidth: 500, ColumnSeparator: tablewriter.COLUMN, RowSeparator: tablewriter.ROW, CenterSeparator: tablewriter.CENTER, HeaderAlignment: tablewriter.ALIGN_LEFT, FooterAlignment: tablewriter.ALIGN_LEFT, Alignment: tablewriter.ALIGN_LEFT, ColumnAlignment: []int{}, NewLine: tablewriter.NEWLINE, HeaderLine: true, RowLine: false, AutoMergeCells: false, Borders: tablewriter.Border{Left: false, Right: false, Bottom: false, Top: false}, }})

err: panic: runtime error: index out of range [1] with length 1 [recovered] panic: runtime error: index out of range [1] with length 1

Han-YLun avatar Aug 04 '23 03:08 Han-YLun