RPE output from DNG. Styles not working for all artifact types
I have two artifact types, one is Information and the other is a Level 2 Requirement. When I run RPE to export a word doc, I'm using a stylesheet to keep consistent formatting. The information artifacts work fine and are indented properly. The Requirement type artifact refuses to indent. Both are text, both are using the same style, both being exported via the richTextBody/div query. The only difference is that the requirement artifacts are colored blue, underlined, and have attributes. The requirement will be of that style, but the indenting will not show. (spacing before or after works)
Why can't I get the requirement type artifact to accept certain style elements?
Thanks
Accepted answer
You can remove the formatting from each requirement using java script (set "Script Expression" as the content for the Text element that prints dataSource/artifact/content/text/richTextBody/div). You can modify, add or remove formatting in the XHTML returned for div attribute.
Please refer https://rpeactual.com/2013/01/18/processing-rich-text-in-rpe/
How are you applying the style from stylesheet? Is the style defined in stylesheet assigned to the element (Text or Paragraph) that prints div attribute? There is a metadata property (under Runtime -> Metadata in Launcher perspective) called "Data Formatting", which can be set to Mixed (default value), Source or Template. You can also try setting it to "Template".
One other answer
It looks like for some reason the formatting got sorta 'locked-in' when they got imported from a different RM system. I can manually remove the formatting from each requirement and it will start taking styles correctly. If anyone knows of a way to automate the process of removing formatting from thousands of artifacts, I'd love to hear it.