aboutsummaryrefslogtreecommitdiff
path: root/lib/documents.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-08-05 16:24:57 +0100
committerMichael Williamson <mike@zwobble.org>2014-08-05 16:24:57 +0100
commit2e932c95e310c0192f09ae9944455c40dd1f9110 (patch)
tree29170d96fbd82aae0c55f0abbf35c5b9b3522915 /lib/documents.js
parent12cba36e333d7f6e6dcc5c4ade9a519291d5cd03 (diff)
Read line breaks
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;