Fixed one more invalid char for make_id.

This commit is contained in:
Roland Meister 2010-01-15 20:49:49 +01:00
parent 96bfbdcc77
commit 531c27c89a

View File

@ -177,7 +177,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
# generic support functions
def make_id(self, name):
"""Replace all characters not allowed for (X)HTML ids."""
return name.replace('/', '_')
return name.replace('/', '_').replace(' ', '')
def esc(self, name):
"""Replace all characters not allowed in text an attribute values."""