SerpicoProject / Serpico

SimplE RePort wrIting and COllaboration tool
Other
1.09k stars 369 forks source link

Loop on paragraph in the report not showing up in the document #599

Open ZigzagSecurity opened 4 years ago

ZigzagSecurity commented 4 years ago

Hi everyone,

I would like to add some text fomating in sections like the conclusion per example. I have created a for each loop on the conclusion's paragraph, like this:

¬conclusion/paragraph¬ µzzzzµ π.π ƒcodeƒ π.π ƒbulletƒ π.π ƒitalicsƒ π.π ÷ π.π ≠

I have then, inserted some text in the conclusion part like the following:

here is the conclusion - Bulleted text goes here - - Bulleted text goes here - [~~ Italics ~~] [~~ Italics ~~]

unfortunetly, when I generate the word document, I just get a blank page. I've checked in the database, and the paragraph tags are placed, as well as the bullet and italics tags.

``

here is the conclusion Bulleted text goes here Bulleted text goes here Italics Italics

``

From what I understand, it seems that the for each loop is not recognized when the template is transformed in xslt. This happen at the line 1326 of the report.rb file: xslt = Nokogiri::XSLT(File.read(xslt_elem.xslt_location)) docx_xml = xslt.transform(Nokogiri::XML(report_xml)) Every other loop I have in any findings are working fine, it is really only related to for each loop out of the findings section.

If anyone already had this kind of behaviour, I would be pleased to have some information on how i can correct this.

Thank you!