diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-28 17:59:14 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-28 17:59:14 +0000 |
| commit | bb3d113828218fa29dae16cae6f2ff5e05e48564 (patch) | |
| tree | 3eef75e7004185852fba00f0e0366888d37609a0 /lib/documents.js | |
| parent | 611e0c9af7c1948ad46c5471a426ec751e73a1ea (diff) | |
Change LineBreak to Break with a break type
Diffstat (limited to 'lib/documents.js')
| -rw-r--r-- | lib/documents.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/documents.js b/lib/documents.js index fc45627..cb62939 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -15,7 +15,7 @@ var types = exports.types = { table: "table", tableRow: "tableRow", tableCell: "tableCell", - lineBreak: "lineBreak", + "break": "break", bookmarkStart: "bookmarkStart" }; @@ -170,9 +170,10 @@ function TableCell(children, options) { }; } -function LineBreak() { +function Break(breakType) { return { - type: types.lineBreak + type: types["break"], + breakType: breakType }; } @@ -198,7 +199,7 @@ exports.Image = Image; exports.Table = Table; exports.TableRow = TableRow; exports.TableCell = TableCell; -exports.LineBreak = LineBreak; +exports.lineBreak = Break("line"); exports.BookmarkStart = BookmarkStart; exports.verticalAlignment = verticalAlignment; |
