aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/document-to-html.js4
-rw-r--r--lib/html-generator.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index e5c1def..da1a69f 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -41,7 +41,7 @@ function DocumentConverter(options) {
}
function convertParagraph(element, html) {
- html.style(styleForParagraph(element));
+ html.satisfyPath(styleForParagraph(element));
return convertElements(element.children, html);
}
@@ -54,7 +54,7 @@ function DocumentConverter(options) {
if (run.styleName) {
var style = runStyleMap[run.styleName];
if (style) {
- runHtml.style(style);
+ runHtml.satisfyPath(style);
}
}
if (run.isBold) {
diff --git a/lib/html-generator.js b/lib/html-generator.js
index fd6aac7..c866051 100644
--- a/lib/html-generator.js
+++ b/lib/html-generator.js
@@ -29,7 +29,7 @@ function HtmlGenerator() {
});
}
- function style(style) {
+ function satisfyPath(style) {
var firstFreshPartIndex = findIndex(style, function(part) {
return part.fresh;
});
@@ -95,7 +95,7 @@ function HtmlGenerator() {
}
return {
- style: style,
+ satisfyPath: satisfyPath,
text: text,
open: open,
close: close,