From f3b63c244c2af055211435db3f3954b8b2c2e81a Mon Sep 17 00:00:00 2001 From: Stuart Rackham Date: Mon, 11 Jun 2012 17:50:56 +1200 Subject: Allow configuration attribute entries to create a new section (previously you could only modify existing sections). See: https://groups.google.com/group/asciidoc/browse_thread/thread/7be28e9714f249c7 --- asciidoc.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/asciidoc.py b/asciidoc.py index 6b265b4..c91c544 100755 --- a/asciidoc.py +++ b/asciidoc.py @@ -1871,10 +1871,7 @@ class AttributeEntry: config.load_miscellaneous(config.conf_attrs) else: # Markup template section attribute. - if attr.name in config.sections: - config.sections[attr.name] = [attr.value] - else: - message.warning('missing configuration section: %s' % attr.name) + config.sections[attr.name] = [attr.value] else: # Normal attribute. if attr.name[-1] == '!': -- cgit v1.2.1