diff --git a/nw/core/tohtml.py b/nw/core/tohtml.py
index ba099335..53503ba5 100644
--- a/nw/core/tohtml.py
+++ b/nw/core/tohtml.py
@@ -241,7 +241,7 @@ class ToHtml(Tokenizer):
return
- def getStylesheet(self):
+ def getStyleSheet(self):
"""Generate a stylesheet appropriate for the current settings.
"""
theStyles = []
diff --git a/nw/gui/build.py b/nw/gui/build.py
index 1bf268eb..50f51395 100644
--- a/nw/gui/build.py
+++ b/nw/gui/build.py
@@ -351,7 +351,7 @@ class GuiBuildNovel(QDialog):
tEnd = time()
logger.debug("Built project in %.3f ms" % (1000*(tEnd-tStart)))
- self.htmlStyle = makeHtml.getStylesheet()
+ self.htmlStyle = makeHtml.getStyleSheet()
# Load the preview document with the html data
self.docView.setStyleSheet(self.htmlStyle)