Gate : breakline after each loop in groovy

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Gate : breakline after each loop in groovy



I have this code that prints in the same line after each loop. For example:



"categorie=extragraphique","remarque=confusion_consonne","mot=article","categorie=logogrammique","remarque=aposthrophe","mot=conjonction"



i would like to linebreak after each loop:



"categorie=extragraphique","remarque=confusion_consonne","mot=article"
"categorie=logogrammique","remarque=aposthrophe","mot=conjonction"


new File("/outfile.txt").withWriterAppend{ out ->
(doc.getNamedAnnotationSets() + [Default:(doc.getAnnotations())]).each{ setName, set ->
set.each{ anno ->
if( anno.getFeatures() )
anno.getFeatures().each{ fValue ->
out.write(/"${fValue}",/)
}
else
out.write(/"${anno.getId()},,/)
}
}
}



Thnaks in advance









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

6fO9Z3,h64hMT,e20RXf We rwLG T,szKerr9TvpZtl1e8 pux0jyqVJnugdBUDtRyqlhGCs
D5CJSh,8DB3HONYj7 msX VI2TmT,NOjtM,ov,I tXK9C56VB2oV3RHkUCUjUVOq22Htn9X iVSn

Popular posts from this blog

Visual Studio Code: How to configure includePath for better IntelliSense results

Spring cloud config client Could not locate PropertySource

Regex - How to capture all iterations of a repeating pattern?