Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Fixed undo bug. Improved encapsulation. Eliminated unused methods and imports.

Authordjarvis <email>
Date2016-11-18 12:48:46 GMT-0800
Commit98ed729b2dd934359e105df703e4460f73ba8c10
Parent03ebaa0
Delta4 lines added, 4 lines removed
src/main/java/com/scrivendor/preview/MarkdownPreviewPane.java
private boolean delayScroll;
- private String html;
+ private String html = "";
private List<Extension> extensions;
* @param markdown The markdown text to convert to HTML, must not be null.
*
- * @return
+ * @return The markdown rendered as an HTML document.
*/
private String toHtml( final String markdown ) {
private String getHtml() {
- return this.html == null ? "" : this.html;
+ return this.html;
}
private void setHtml( final String html ) {
- this.html = html;
+ this.html = html == null ? "" : html;
}
}