Why is this accepted by the skinning engine ? :
And why is this not ? :
The button is not added to the screen, and I see this error message in Kodi's logfile :
The only difference being that I hit the Return-key twice to add the line breaks.
In the failing format, there are leading tabs before movieinformation_TrailerButton.
In both formats there are leading tabs before <include> and </include>.
When I roll back to the one-liner, the warning message doesn't appear in the log and the new button is added to the screen.
Code:
<include condition="Skin.HasSetting(context.trailer) + !String.IsEmpty(ListItem.Trailer)" file="bespoke_Includes_Buttons.xml">movieinformation_TrailerButton</include>
And why is this not ? :
Code:
<include condition="Skin.HasSetting(context.trailer) + !String.IsEmpty(ListItem.Trailer)" file="Includes_Buttons.xml">
movieinformation_TestButton
</include>
The button is not added to the screen, and I see this error message in Kodi's logfile :
Code:
16:57:42.328 T:140370368546880 WARNING: Skin has invalid include:
movieinformation_TestButton
In the failing format, there are leading tabs before movieinformation_TrailerButton.
In both formats there are leading tabs before <include> and </include>.
When I roll back to the one-liner, the warning message doesn't appear in the log and the new button is added to the screen.