79522532

Date: 2025-03-20 09:56:41
Score: 0.5
Natty:
Report link

I think you need to try regx.

// first convert to string
String output = template.toString();
output = output.replaceAll("(?m)^\\s*$[\r\n]+", ""); // here is my regx 
System.out.println(output);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kamran Khalid