officegen icon indicating copy to clipboard operation
officegen copied to clipboard

docx-p/addText: explicitly convert text to string

Open zhuiks opened this issue 3 years ago • 0 comments

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.

zhuiks avatar Sep 13 '21 13:09 zhuiks