- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for setTextContent (0.08 sec)
-
build-logic/documentation/src/main/groovy/gradlebuild/docs/UserGuideTransformTask.groovy
} def fixProgramListings(Document doc) { doc.documentElement.depthFirst().findAll { it.name() == 'programlisting' || it.name() == 'screen' }.each {Element element -> element.setTextContent(normalise(element.getTextContent())) } } static String normalise(String content) { content.replace('\t', ' ').stripIndent().replace('\r\n', '\n') }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Aug 19 15:07:24 UTC 2024 - 5.6K bytes - Viewed (0)