From 8fb7c85e990f62335375c2f0481e08473f09149f Mon Sep 17 00:00:00 2001 From: Marcus Holl Date: Tue, 29 Jan 2019 11:45:14 +0100 Subject: [PATCH 1/2] keep leading blanks in order to render 'git diff! Note' statements --- documentation/bin/createDocu.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/bin/createDocu.groovy b/documentation/bin/createDocu.groovy index 7d4164160..2b83754a6 100644 --- a/documentation/bin/createDocu.groovy +++ b/documentation/bin/createDocu.groovy @@ -210,7 +210,7 @@ class Helper { def _docu = [] docuLines.each { _docu << it } _docu = Helper.trim(_docu) - step.description = _docu*.trim().join('\n') + step.description = _docu.join('\n') } else { def param = retrieveParameterName(line) @@ -270,7 +270,7 @@ class Helper { } if(! value && ! mandatory) { - docuLines << _line.trim() + docuLines << _line } } From 50edac02ca11bbb46bceef9ab8f304e14d738d7d Mon Sep 17 00:00:00 2001 From: Marcus Holl Date: Tue, 29 Jan 2019 17:25:14 +0100 Subject: [PATCH 2/2] First char after docu asterisk is pruned ... with a blank after the asterisk the docu looks more beautifyfull. --- documentation/bin/createDocu.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/bin/createDocu.groovy b/documentation/bin/createDocu.groovy index 2b83754a6..b8ba84911 100644 --- a/documentation/bin/createDocu.groovy +++ b/documentation/bin/createDocu.groovy @@ -245,6 +245,7 @@ class Helper { if(_line.startsWith('/**')) _line = _line.replaceAll('^\\/\\*\\*', '') // start comment if(_line.startsWith('*/')) _line = _line.replaceAll('^\\*/', '') // end comment if(_line.startsWith('*')) _line = _line.replaceAll('^\\*', '') // continue comment + if(_line.startsWith(' ')) _line = _line.replaceAll('^\\s', '') if(_line ==~ /.*@possibleValues.*/) { mandatory = false // should be something like reset attributes value = true