diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-18 20:14:37 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-18 20:14:37 +0100 |
| commit | b10fffa46bc53408d0dcce12db9cd3b27dba16cb (patch) | |
| tree | 933af1079c30eed3120e3236527558451c2a2f6d /lib | |
| parent | f5e1cbb69b1aae679f8629fe13d0c49778b181d0 (diff) | |
Emit warning if run style is not recognised
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/document-to-html.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 3eefee9..b306223 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -60,6 +60,8 @@ function DocumentConverter(options) { var style = runStyleMap[run.styleName]; if (style) { runHtml.satisfyPath(style); + } else { + messages.push(results.warning("Unrecognised run style: " + run.styleName)); } } if (run.isBold) { |
