protobi / js-xlsx

XLSX / XLSM / XLSB (Excel 2007+ Spreadsheet) / ODS parser and writer
http://oss.sheetjs.com/js-xlsx
Other
814 stars 416 forks source link

Font Style not Suport 'text-indent' property? #118

Open BlackSkyJY opened 5 years ago

BlackSkyJY commented 5 years ago

I want export tree data excel, look similar to this image, I find font style not suport text-indent to set, Is there any way to solve it?

pietersv commented 5 years ago

@BlackSkyJY This image looks like it's using the outline feature rather than simple text indent, unless the [-] is just a unicode character and the (N) values are just text.

I don't believe either outlining or text indent are currently features, but may be in the commercial version from @SheetJS. I'd recommend inquiring there.

Alternatively, you can unzip an .xlsx file that has such a tree (jar -xvf example.xlsx) and look at the Sheet1.xml to see how the indents are represented. The library is open source, so there's likely a way to extend it to write that XML.

BlackSkyJY commented 5 years ago

@pietersv I just want something like 'text-indent',ignore ['-'] unicode character

RimaCiklum commented 3 years ago

@BlackSkyJY https://github.com/protobi/js-xlsx/blob/master/example-style.js addresses the indent with example