Hi,
I want to stop indentation at some specific points. (not to completely remove it.) Like when i inert through builder.insertHTML , i want to stop indentation. Like for example , i have the following code -
builder.getListFormat().setList(document.getLists().add(ListTemplate.NUMBER_DEFAULT));
builder.writeln(“ABCD”);
builder.getListFormat().listIndent();
builder.writeln(“CDEF”);
builder.insertHtml(“
Always test your software with a “worst-case\n” +
" scenario” amount of sample data, to get an accurate sense of\n" +
" its performance in the real world",true);
builder.getListFormat().removeNumbers();
My output is -
- ABCD
a. CDEF
b. Always test your software with a “worst-case scenario” amount of sample data, to get an accurate sense of its performance in the real world
but i want output as -
- ABCD
a. CDEF
Always test your software with a “worst-case scenario” amount of sample data, to get an accurate sense of its performance in the real world
How can i stop indentation on insertHTML , please help.