From 594da40a6237a2f81a8887a935a4144f4141ef25 Mon Sep 17 00:00:00 2001 From: David Russell Date: Sun, 9 Oct 2016 23:19:54 +0700 Subject: [PATCH] Removed EOL character stripping interfering with code block indentation. --- app/com/gitpitch/models/MarkdownModel.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/com/gitpitch/models/MarkdownModel.java b/app/com/gitpitch/models/MarkdownModel.java index 08f5e34..186c13b 100644 --- a/app/com/gitpitch/models/MarkdownModel.java +++ b/app/com/gitpitch/models/MarkdownModel.java @@ -124,13 +124,15 @@ public class MarkdownModel implements Markdown { YAMLOptions yOpts, String gitRawBase) { - /* - * Clean md fragment before processing. - */ - md = (md != null) ? md.trim() : md; - if (slideDelimFound(md)) { + /* + * Clean only delimiter fragments of whitespace + * noise before processing. Preserve end-of-line + * characters on all non-delimiter fragments. + */ + md = md.trim(); + if (videoDelimFound(md)) { /*