node-html-to-text icon indicating copy to clipboard operation
node-html-to-text copied to clipboard

use tabs for formatting HTML tables

Open Arlen22 opened this issue 9 years ago • 2 comments

Is there a way to set HtmlToText to output tab characters to separate html table cells instead of making fixed width columns?

Arlen22 avatar Jun 04 '16 14:06 Arlen22

No currently not.

mlegenhausen avatar Jun 06 '16 06:06 mlegenhausen

Is there a way to have a fixed width per column on the <td> tag then align text to the right. Currently i'm using the package to produce a tabular view for the product list for receipt printing with esc-pos-encoder and it is working fine but the problem is that the width of the column is not fixed and the expedted result on the printed receipt was not met and it should also align the price value to the right side.

If anyone have a solution for this please let me know. Thank you

marquipaul avatar Dec 03 '20 05:12 marquipaul