In one of my template I used the group tag to group some tables together, so in the export, they will be showed closely in one page.
I used {% nic %}{::group}{% endnic %} and the beginning of the table, and {% nic %}{:/group}{% endnic %} at the end of those tables. This will sum all tables together in the export, but in preview mode, the “{::group}” will also be there. This looks like an liquid error to user, and is there a way we can use the group tag but not print them in the preview mode? Please see the screenshot.
The good news is that we are already aware of this issue and definitely nothing is wrong in your code. The bad news is that we are still working on a solution for this. This has already been flagged with our engineering team and will be picked up the next couple of weeks.
The only way this grouping is supported in preview mode is when the grouping is switched around (so first closing group tag and then opening group tag in your template). But your export style should in that case support it as well, otherwise the group-tags will just show up in PDF export.
So for now, nothing you can do liquid-wise to overcome this issue I’m afraid (except structurally changing your export style and the way you use group tags in your templates), but we’ll keep you updated as soon as our engineers have resolved this bug.
Some more information on the use of group tags in reconciliation and account templates can be found here: Group
We didn’t consider your exact use-case when we deployed this structural fix to our platform. We might have some workarounds that can be applied to cover your issue, we’ll contact you via a separate e-mail to share these!