You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes Variables are replaced properly but sometimes it is giving issues after rendering/parsing in the library.
My Template
Result after Parsing
Code base which is converting template to final docx
`
// Method to process docx data and generate document
func (d *Docx) Process(data interface{}) error {
template, err := docxt.OpenTemplate(d.source)
if err != nil {
logger.Error("Error while processing Template ,", err)
return err
}
if err := template.RenderTemplate(data); err != nil {
logger.Error("Error while Rendering Template ,", err)
return err
}
if err := template.Save(d.destination); err != nil {
logger.Error("Error while saving Template ,", err)
return err
}
logger.Info("Successfully Processed")
return nil
} `
The text was updated successfully, but these errors were encountered:
The issue is spell check. Word appends original XML with additional tags (to display spell check error) right between {{ and }}. Disabling spellcheck for those lines would help.
Sometimes Variables are replaced properly but sometimes it is giving issues after rendering/parsing in the library.
My Template

Result after Parsing

Code base which is converting template to final docx
`
// Method to process docx data and generate document
func (d *Docx) Process(data interface{}) error {
} `
The text was updated successfully, but these errors were encountered: