corrected example

This commit is contained in:
Dolan
2017-03-14 10:38:05 +00:00
committed by GitHub
parent 486777b108
commit 2be00d3f1e

View File

@ -44,7 +44,7 @@ var doc = new docx.Document();
// Add some content in the document // Add some content in the document
var paragraph = new docx.Paragraph("Some cool text here."); var paragraph = new docx.Paragraph("Some cool text here.");
// Add more text into the paragraph if you wish // Add more text into the paragraph if you wish
paragraph.addText(new docx.TextRun('Lorem Ipsum Foo Bar')); paragraph.addRun(new docx.TextRun('Lorem Ipsum Foo Bar'));
doc.addParagraph(paragraph); doc.addParagraph(paragraph);
// Used to export the file into a .docx file // Used to export the file into a .docx file