extentreports-csharp icon indicating copy to clipboard operation
extentreports-csharp copied to clipboard

Styles section of extent-config.xml is ignored. CSS is used instead

Open grzegorz-jarosz opened this issue 6 years ago • 1 comments

I couldn't get some custom styles to work. Putting them inside styles tags of extent-reports.xml config file didn't work. After some searching inside this plugin source files I noticed that "styles" doesn't seem to be used. What I found is that "css" is used there. So putting my styles inside "css" config did the trick:

<!-- custom styles -->
<css>
    <![CDATA[
        <!-- I've put my styles here -->
     ]]>
</css>`

So I report this, so everyone having this issue can solve it.

I can imagine two solutions to this issue. Either having the rest of the plugin read "styles" from config as well or updating reference extent-config.xml file to have "css" section there.

Edit: I forgot to specify version I was using. It was 3.1.3

grzegorz-jarosz avatar Oct 24 '18 05:10 grzegorz-jarosz

Thank you for taking time to research this hook. Version 4 supports both styles and CSS tags - to be backward compatible with version 2 and version 3 config xmls.

foursyth avatar Oct 24 '18 06:10 foursyth