src/main/java/org/vaadin/console/client/ui/TextConsole.java
changeset 6 8a7e51bd3ddb
parent 5 01a04ffaf85f
child 7 a778386e297f
equal deleted inserted replaced
5:01a04ffaf85f 6:8a7e51bd3ddb
   449         buffer.appendChild(createBr());
   449         buffer.appendChild(createBr());
   450         checkBufferLimit();
   450         checkBufferLimit();
   451         reducePrompt(1);
   451         reducePrompt(1);
   452     }
   452     }
   453 
   453 
       
   454 	public void newLineIfNotEndsWithNewLine() {
       
   455 		if (!bufferIsEmpty() && !bufferEndsWithNewLine()) {
       
   456 			// _log("newline");
       
   457 			buffer.appendChild(createBr());
       
   458 			checkBufferLimit();
       
   459 			reducePrompt(1);
       
   460 		}
       
   461 	}
       
   462 
   454     protected void setPs(final String string) {
   463     protected void setPs(final String string) {
   455         cleanPs = Util.escapeHTML(string);
   464         cleanPs = Util.escapeHTML(string);
   456         cleanPs = cleanPs.replaceAll(" ", " ");
   465         cleanPs = cleanPs.replaceAll(" ", " ");
   457         ps.setInnerHTML(cleanPs);
   466         ps.setInnerHTML(cleanPs);
   458     }
   467     }