diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-08-05 16:24:57 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-08-05 16:24:57 +0100 |
| commit | 2e932c95e310c0192f09ae9944455c40dd1f9110 (patch) | |
| tree | 29170d96fbd82aae0c55f0abbf35c5b9b3522915 /lib/documents.js | |
| parent | 12cba36e333d7f6e6dcc5c4ade9a519291d5cd03 (diff) | |
Read line breaks
Diffstat (limited to 'lib/documents.js')
| -rw-r--r-- | lib/documents.js | 10 |
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; |
