Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

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

Open
ZigzagSecurity opened this issue Feb 27, 2020 · 0 comments
Open

Comments

@ZigzagSecurity
Copy link

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.

<paragraph>here is the conclusion</paragraph><paragraph><bullet> Bulleted text goes here </bullet></paragraph><paragraph><bullet> Bulleted text goes here </bullet></paragraph><paragraph><italics> Italics </italics></paragraph><paragraph><italics> Italics </italics></paragraph>

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant