From b10fffa46bc53408d0dcce12db9cd3b27dba16cb Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 18 Apr 2013 20:14:37 +0100 Subject: Emit warning if run style is not recognised --- lib/document-to-html.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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) { -- cgit v1.2.3