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 --- tests/document-to-html.tests.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index fd6ef1a..51e1a73 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -184,6 +184,14 @@ describe('DocumentConverter', function() { }); }); + test('docx tab is converted to tab in HTML', function() { + var tab = new documents.Tab(); + var converter = new DocumentConverter(); + return converter.convertToHtml(tab).then(function(result) { + assert.equal(result.value, "\t"); + }); + }); + test('images are written with data URIs', function() { var imageBuffer = new Buffer("Not an image at all!"); var image = new documents.Image({ -- cgit v1.2.3