Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
harshad1 committed Mar 7, 2024
1 parent a772e36 commit 03f35a1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ private String getFormatted(final boolean asLink, final File src, final int form
formatted = formatShare(formatted);

if (format == FormatRegistry.FORMAT_TODOTXT) {
formatted = "\\n" + TodoTxtTask.getToday() + " " + formatted.replaceAll("\\n", " ");
formatted = TodoTxtTask.getToday() + " " + formatted.replaceAll("\\n+", " ");
} else {
formatted = "\n" + formatted;
}

return formatted;
Expand Down

0 comments on commit 03f35a1

Please sign in to comment.