Add indentation to a cell content using html-to-xlsx recipe
-
Hi all,
I generate an xlsx-file using
html-to-xlsx
recipe. Some cells in the file should have indentation but I don't know how to do that.Here's an example: https://playground.jsreport.net/w/anon/gDy_MBMR
<style> .indent { padding-left: 16px; } .red-text { color: red; } </style> <table> <tr> <td>Cell without indentation</td> </tr> <tr> <td class="indent red-text">Cell with indentation</td> </tr> </table>
Could someone tell me if it's possible to add cell indentation and how to do it? Thank you.
-
Unfortunately, this isn't supported in the html-to-xlsx recipe. I've added it to the back log
https://github.com/jsreport/jsreport/issues/1011We will also make it possible to post-process the
html-to-xlsx
withxlsx
recipe and fill the gap with unsupported features. This will be working with the next hotfix.
https://github.com/jsreport/jsreport/issues/1012At this moment, you need to use the xlsx recipe to be able to add indentation.
-
That's a shame ((
Thanks, @jan_blaha for a reply.