Description of problem:
Changing a brand from "common" to "RedHat" and back again results in wrong rendering of a book.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a new book typing "publican create --name Broken".
2. In publican.cfg, change the brand from "common" to "RedHat", and build the book typing "publican build --langs=en-US --formats=html-desktop".
3. In publican.cfg, change the brand back to "common", and build the book with the command above once again.
4. Open tmp/en-US/html-desktop/index.html in a web browser.
The document appears to combine the brands together: although the title page uses the correct heading and images, chapter and section headings are red instead of blue, example frames are grey instead of orange, etc.
The document should have correct appearance as defined by the current brand.
None at the moment.
This occurs because the Red Hat brand contains an overrides.css file that overrides certain parts of the default.css of the common brand. Since you built the book first with the Red Hat brand, the overrides.css file for that brand was still in the tmp/en-US/html-desktop directory when you built it with the common brand which doesn't contain an overrides.css file.
To work around this, run "publican clean" between builds, or simply delete tmp/en-US/html-desktop/Common_Content/css/overrides.css
Note that this scenario only arises when switching to a brand that lacks an overrides.css from some other brand that includes an overrides.css.
I'm going to close this NOTABUG since all it requires is running 'publican clean'; we can't automatically run clean every build as it breaks a lot of use cases.