officegen
officegen copied to clipboard
docx-p/addText: explicitly convert text to string
text_msg
(the first argument of the addText()
) might always not be a string (i.g. it can be a number). It's better to add explicit conversion toString()
so code would not throw any errors similar to text_msg.replace is not a function
in line 111.