Description of problem: Currently the settings for strict mode are hard coded in Publican, banned tags and attributes should be configurable at the brand level. Version-Release number of selected component (if applicable): 2.5
Removed STRICT mode from code. Added configuration options banned_tags and banned_attrs. These can be set at the book or brand levels. By default Publican does not, and will not, set these parameters. Brands wishing to impose restrictions will have to do so in the brand itself. Fixed in revision 1690
Jeff, For testing purposes, could you provide some instructions on how to set these bans? Since you stated they can be set at the book level, I tried adding a 'banned_tags:' entry to the publican.cfg file. Running 'publican print_banned' still shows no banned tags. Cheers
Documentation required for this RFE. Publican User Guide 3.0 tracker ticket added to this issue.
banned_attrs and banned_tags can only be set in brands, so you'd need to update a brand to test this. Just set either in a brands defaults.cfg or overrides.cfg ... you can be naughty and just `sudo gvim /usr/share/publican/Common_Content/RedHat/defaults.cfg` to test if you don't want to rebuild a brand. e.g. banned_tags: "indexterm,para" simpara should be enough para for anyone!
(In reply to comment #4) > banned_attrs and banned_tags can only be set in brands, so you'd need to > update a brand to test this. > > Just set either in a brands defaults.cfg or overrides.cfg ... you can be > naughty and just `sudo gvim > /usr/share/publican/Common_Content/RedHat/defaults.cfg` to test if you don't > want to rebuild a brand. > > e.g. banned_tags: "indexterm,para" > > > simpara should be enough para for anyone! execute the above.
Verified in publican-3.0-0.fc17.t180.noarch Setting banned_tags: "indexterm,para" in brand default.cfg and building a book gives: ERROR: Banned tag (para) detected. Discuss this with your brands owners if you think this is in error. Setting: banned_attrs: "id" in brand default.cfg and building a book gives: ERROR: Banned attribute (id) detected. Discuss this with your brands owners if you think this is in error.