Hi,

Is the range in "for (i in 0..lastIndexOfTArray) {" including the last
index? I.e. as you use "-1" in the line above, the check in the for-loop
needs to be "<= lastIndexOfTArray".

At least I had the same behavior in Java with "for (int i = 0; i <
lastIndexOfArray; i++)", but it works fine with ">=".

Regards... Dominik.


On Mon, Dec 21, 2020 at 11:43 AM Paul Wellner Bou <wellner...@bryter.io>
wrote:

> Good morning,
>
> I am trying to clear an XWPFRun completely -- not removing it, but just
> setting it to an empty string. And I have no success if the run contains
> white space, for example tabs.
>
> I set up a very simple example (in Groovy, as this is the most easy and
> fastest way to showcase it, with dependencies) to reproduce this issue:
>
>
> https://github.com/paulwellnerbou/apache-poi-testcases/blob/main/run/clearRun.groovy
>
> How do I clear runs completely even with tab stops? Is this a bug in
> Apache POI XWPF or am I doing anything wron?
>
> Thank you very much!
>

Reply via email to