Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: html2text #61

Open
Han-YLun opened this issue Aug 4, 2023 · 0 comments
Open

error: html2text #61

Han-YLun opened this issue Aug 4, 2023 · 0 comments

Comments

@Han-YLun
Copy link

Han-YLun commented Aug 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant