When adding an ability which uses ADD:SPELLCASTER to give spellcasting ability, a spurious level 0 class is added to the class line in the preview OS, and on the PDF export csheet_fantasy_std_grey.xslt.
Example: A soulknife with the gifted blade archetype gets the spellcasting of a first-level gifted blade. The class line in the preview reads "Soulknife1 Gifted Blade0". The export PDF's class line reads "Soulknife (Gifted Blade), Gifted Blade".
The gifted blade archetype can be found in NFD/pathfinder/dreamscarred_press/psionics_expanded, if you want to try it yourself.
This would be tricky to implement, since I have to tell the output to count the class, and yet ignore level 0 value. I'll have to see what says about this and if it is possible.
What about filtering the classes on the class line with a level > 0 test?
It could be done in base.xml.ftl to sort out all of the pdf sheets.
It would need individual application to the htm sheets. They would need to be migrated to ftl first though.
It's the count that concerns me, but yeah, add an IF right below that? Sounds like a plan.
Completed: At revision: 24632
PDF only till Freemarker is ported to HTM/TXT