我正在使用一个脚本来替换 Google Docs 模板中的字符串。如果我使用该\n
命令,我可以在模板中获得一个新行。
sample = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. \n Lorem Ipsum is simply dummy text of the printing and typesetting industry."
我得到这样的东西:
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
但我想添加的不是新字符串,而是新段落(根据模板设置):
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
有什么办法可以做到吗?