senny / sablon

Ruby Document Template Processor based on docx templates and Mail Merge fields.
MIT License
443 stars 126 forks source link

nested tables support? #172

Open blshkv opened 3 years ago

blshkv commented 3 years ago

Hello,

I know it is not a best practice, but I need to include another table (Table2) within the current table (Table1). Table1 is getting generated in the loop and has some dynamic fields. A nested table Table2 even without any dynamic fields seems to break the current table Table1.

Is it sablon can't handle it, or I'm doing something wrong?

senny commented 3 years ago

Hi @blshkv

I don't think that support for nested tables was something I considered when working on Sablon. If you see problems using it like this, I'm pretty sure that it's not supported. It's possible that support "could" be added but it sounds like a more tricky endeavor. Feel free to have a try at at it though.

Best, Yves

bengarvey commented 7 months ago

We're also looking for this. Tables show up now, but they have 0 width

bengarvey commented 6 months ago

@senny or anyone else, we'd be interested in paying a bounty on this issue if it meets our requirements (essentially making sure nested tables get set with a proper width). Let us know if you want to discuss.

bengarvey commented 6 months ago

Email me ben at commonpaper dot com if you're interested.

stadelmanma commented 6 months ago

@bengarvey I'm not entirely sure if I have time to work on this feature, but I will reach out.