/** * Removes empty lines before and after the content. * Called before every announcement. */ private void trimContent(OrgHead head) { head.setContent(OrgStringUtils.trimLines(head.getContent())); }
String content = head.getContent().trim(); if (!content.startsWith(":LOGBOOK:") && !content.startsWith("CLOCK: ") && !isLogNoteHeading(content)) { if (settings.separateHeaderAndContentWithNewLine) { s.append(head.getContent().replaceAll("(?m)^(\\*+\\s+)", " $1"));