diff --git a/generator.html b/generator.html
index 1f40d48..14825dc 100644
--- a/generator.html
+++ b/generator.html
@@ -375,6 +375,7 @@
if (color.classname.length) {
classname += ' ' + color.classname;
}
+ classname = classname.trim();
calendar.className = classname;
this.wrapper.calendar.appendChild(calendar);