Hi Team,
We are using Aspose.Words Java and we are facing one issue while replacing a text in existing .dot template file. In our case, the text to be replaced is on a single cell. Single cell has some other contents with line break ("\r"). When we replace the text with empty value, we are getting whitespace line and could not able to remove the line. Here is the contents looking like in our. dot file. Please find the attached templates for your reference.
Addr name
Addr Line 1
Addr Line 2
State
City
In our case, Addr Line 1 or Addr Line 2 might be empty. After replacing we got
Addr name
Addr Line 1
<>
State
City
We have tried removing the text Addr Line 2 from that cell using run.remove() method but still that line is not getting removed.