-3
I’m assembling a message with several messages in JAVA. After it was sent to the front/view but the angle is eating all the lines breaks:
public String salvarPorXLS(){
while (rowIterator.hasNext()) {
pErrors += "\n"+"Atividade do processo: " + numeroProcesso + " cadastrada com sucesso"+"\n";
}
return pErrors;
}
Message:
Process activity: 00003362920178178224 successfully registered Process activity: 00003362920178178224 successfully registered Process activity: 00032906420158172001 successfully registered Process activity: 00032906420158172001 successfully registered Activity of the process: 00032906420158172001
You’re not breaking the line after the word success!
the angle is hindering the exit:
You can’t even test this code, so there’s no way to analyze anything. But testing on ideone, modifying some variables, worked perfectly: https://ideone.com/wVMQBD
– user28595
See if this helps you: https://answall.com/questions/7448/usando-lineNo-java
– LipESprY
The angle is hindering the exit of the message
– alexjosesilva
I will add the code in html
– alexjosesilva
The angle is eating the line break. Java is right!
– alexjosesilva
Then edit the question, because your doubt has nothing to do with java.
– user28595
@jsbueno I removed the java tag pq doubt had nothing to do with java, as the author himself explained in the comments.
– user28595
But if you thought your problem was in Java, the little piece of code that’s there is from the code in Java, Ach that makes sense. Because if so, it also has nothing to do with "angular" - the doubt is only of the output text - terminal (or text file) x html. And in fact, it has 0 of Ângular specifics in the question and answer, but besides the Java code in the question, I address Java in the answer accepted (but what I have commented on also applies to C, C#, CPP, avascript, Python and Ruby, at least: languages that use the C character escape syntax)
– jsbueno
@jsbueno agree with you, the author was not able to express right his doubt in the question. The doubt, in the end, is neither of java nor of angular.
– user28595