aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-08 20:58:22 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-08 20:58:22 +0100
commitb4e24fbcb96743e7a81156526ef4e994f4af20e4 (patch)
treece88d66b001967098d0ddbe4b09b3d888eefb5ec /lib
parent03716aafae79ce637bd130b006faac3ffd42499d (diff)
Rename HtmlGenerator.style to satisfyPath
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,