I have a macro to provide some space between paragraphs. (Users shouldn’t do two line breaks due to a11y.)
Macro code looks like:
{{velocity}}
## default text height in pixel
#set($totalHeight = 23)
#if($wikimacro.parameters.Multiplikator)
## parameter Multiplikator is a string because german decimal delimiter won't work with float
#set($factor = $wikimacro.parameters.Multiplikator)
## replace comma with dot for correct decimal number
#set($factor = $wikimacro.parameters.Multiplikator.replaceAll(",", "."))
## set negative numbers to positive
#set($factor = $wikimacro.parameters.Multiplikator.replaceAll("-", ""))
## to create a real decimal number - work around
#set($factor = $factor * 100)
#set($factor = $factor.floatValue() / 100)
#set($totalHeight = $totalHeight * $factor)
#end
## set default if $factor was no number at all
#if(!$totalHeight)
#set($totalHeight = 23)
#end
{{html}}
<div style="height:${totalHeight}px;margin-bottom:10px"></div>
{{/html}}
{{/velocity}}
But the log file is full of these lines:
WARN c.x.x.w.JsxAction - Failed to fix the source path in the generated JavaScript source mapping. Root cause is [IndexOutOfBoundsException: Illegal index -1, array size 0]
Any idea why this is happening?
Simpel