equal
deleted
inserted
replaced
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 } |