diff --git a/src/mako/lib/util.py b/src/mako/lib/util.py index 1dbea8ed89..0e3b477507 100644 --- a/src/mako/lib/util.py +++ b/src/mako/lib/util.py @@ -285,6 +285,7 @@ def canonical_type_name(s): # can't use s.capitalize() as it will lower-case the remainder of the string s = ''.join(capitalize(t) for t in s.split(' ')) s = ''.join(capitalize(t) for t in s.split('_')) + s = ''.join(capitalize(t) for t in s.split('-')) return capitalize(s) def nested_type_name(sn, pn):