aboutsummaryrefslogtreecommitdiff
path: root/lib/html-generator.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-07-05 19:56:43 +0100
committerMichael Williamson <mike@zwobble.org>2014-07-05 19:56:43 +0100
commitc0654e048359aa7dfbc9d4be4527b9bed3a4447a (patch)
tree5f39e6a15c54b1ba99a25fb391202414287adbeb /lib/html-generator.js
parent91a7928116c5157b451892e586b684744dbe4174 (diff)
Always write out table cells, even when empty
Diffstat (limited to 'lib/html-generator.js')
-rw-r--r--lib/html-generator.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/html-generator.js b/lib/html-generator.js
index de0749c..ef0c544 100644
--- a/lib/html-generator.js
+++ b/lib/html-generator.js
@@ -49,10 +49,13 @@ function HtmlGenerator(options) {
return stackElement && stylePart.matchesElement(stackElement);
}
- function open(htmlPathElement) {
+ function open(htmlPathElement, options) {
var stackElement = Object.create(htmlPathElement);
stackElement.written = false;
stack.push(stackElement);
+ if (options && options.alwaysWrite) {
+ writeAll();
+ }
}
function close() {