aboutsummaryrefslogtreecommitdiff
path: root/lib/documents.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/documents.js')
-rw-r--r--lib/documents.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/documents.js b/lib/documents.js
index 46699bc..c26c76a 100644
--- a/lib/documents.js
+++ b/lib/documents.js
@@ -10,7 +10,8 @@ var types = {
footnote: "footnote",
table: "table",
tableRow: "tableRow",
- tableCell: "tableCell"
+ tableCell: "tableCell",
+ lineBreak: "lineBreak"
};
function Document(children, options) {
@@ -121,6 +122,12 @@ function TableCell(children) {
};
}
+function LineBreak() {
+ return {
+ type: types.lineBreak
+ };
+}
+
exports.Document = Document;
exports.Paragraph = Paragraph;
exports.Run = Run;
@@ -134,3 +141,4 @@ exports.Image = Image;
exports.Table = Table;
exports.TableRow = TableRow;
exports.TableCell = TableCell;
+exports.LineBreak = LineBreak;