in extscript-doccompiler/src/main/java/org/apache/myfaces/extension/scripting/doccompiler/XSLTDocCompiler.java [136:169]
static int handleUL(StringBuilder target, int pos, String[] lines, int indendation)
{
int precedingBlanks = Math.max(0, determinePrecedingBlanks(lines[pos]) - indendation);
target.append(cutPrecedingBlanks(lines[pos], precedingBlanks));
target.append("\n");
//special case same line ul is closed
if (lines[pos].contains("</ul>"))
{
return pos;
}
pos++;
//TODO nesting
while (pos < lines.length && !lines[pos].contains("</ul>"))
{
if (lines[pos].contains("<ul>"))
{
pos = handleUL(target, pos, lines, precedingBlanks);
} else
{
target.append(cutPrecedingBlanks(lines[pos], precedingBlanks));
target.append("\n");
}
pos++;
}
if (pos < lines.length)
{
target.append(cutPrecedingBlanks(lines[pos], precedingBlanks));
target.append("\n");
}
return pos;
}