From f1f833367bb0f52d8895fa72da06daa700f574e2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 20 Oct 2013 23:40:19 +0100 Subject: Convert document tabs into literal tab characters --- lib/documents.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/documents.js') diff --git a/lib/documents.js b/lib/documents.js index 5f64059..4dfbe74 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -33,6 +33,12 @@ function Text(value) { }; } +function Tab(value) { + return { + type: "tab" + }; +} + function Hyperlink(children, options) { return { type: "hyperlink", @@ -64,5 +70,6 @@ exports.Document = Document; exports.Paragraph = Paragraph; exports.Run = Run; exports.Text = Text; +exports.Tab = Tab; exports.Hyperlink = Hyperlink; exports.Image = Image; -- cgit v1.2.3