Free Support Forum - aspose.cloud

Microsoft Word Mustache(Logic-less) Mail Merge template placeholders with JSON data whitespace issue using Aspose.Words REST API

Hello there,

We’re using Aspose for Cloud (Words) to populte a pre-uploaded docx document with data via JSON replacing the placeholders in the document. Everything is working fine so far but every placeholder item wrapped in a foreach statement is prefixed with a whitespace.

So far we couldnt find a solution - is this related to a broken template file or do we need to remove some magic (hidden) characters in the template which have might been introduced by the office producing the templates?

Cheers,
Marvin

Hi Marvin,

Can you please share you template, JSON and a screenshot to highlight the issue?

Best Regards,