diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2012-06-11 17:50:56 +1200 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2012-06-11 17:50:56 +1200 |
commit | f3b63c244c2af055211435db3f3954b8b2c2e81a (patch) | |
tree | 113759e8c1849b4a2ab4423e00b7f2a0e1a2440e | |
parent | c849bfd18c788c9e3c67f11d40caf2fd9c7631d0 (diff) | |
download | asciidoc-f3b63c244c2af055211435db3f3954b8b2c2e81a.tar.gz |
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
-rwxr-xr-x | asciidoc.py | 5 |
1 files changed, 1 insertions, 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] == '!': |