Fri Jun 17, 2022 1:22 pm
I have tested the code and it works fine for the test case. However, I have found other additional problems.
1.- It seems that the cloned body includes an additional paragraph break because in the result, between each duplicated block, there is one more paragraph break.
2.- The duplication of a block may be within the same paragraph, for example "text <start> 12345 <end> text". In this case it doesn't work for me. I've also tried "<start> 12345 <end>", "<start> 12345 <end> text", "text <start> 12345 <end>" and so on.
3.- Another curious case is that if I use the example "text <start> 12345 <end>", that is, with several blank spaces around "12345", the start mark puts it correctly, right at the end of "<start> " but the end mark puts it after the "5" and therefore does not take the spaces that remain until the beginning of "<end>.
Thank you very much for your assistance.