From 0e30652b72158661d1bcc5ca4a49e03725379445 Mon Sep 17 00:00:00 2001 From: David Russell Date: Thu, 23 Nov 2017 11:10:28 +0700 Subject: [PATCH] Simplified menu/slide-title injection. --- app/com/gitpitch/services/CodeService.java | 12 ++++-------- app/com/gitpitch/services/GISTService.java | 6 +----- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/app/com/gitpitch/services/CodeService.java b/app/com/gitpitch/services/CodeService.java index 090bf93..cf3b9d8 100644 --- a/app/com/gitpitch/services/CodeService.java +++ b/app/com/gitpitch/services/CodeService.java @@ -113,14 +113,10 @@ public class CodeService { if(slideTitle != null) { slide = slide.append(MarkdownModel.MD_SPACER) - .append("") - .append(MarkdownModel.MD_SPACER) - .append("") - .append(slideTitle) - .append("") - .append(MarkdownModel.MD_SPACER); + .append("") + .append(slideTitle) + .append("") + .append(MarkdownModel.MD_SPACER); } slide = slide.append(MarkdownModel.MD_CODE_BLOCK_OPEN); diff --git a/app/com/gitpitch/services/GISTService.java b/app/com/gitpitch/services/GISTService.java index b7b12be..ced9b84 100644 --- a/app/com/gitpitch/services/GISTService.java +++ b/app/com/gitpitch/services/GISTService.java @@ -135,11 +135,7 @@ public class GISTService { if(slideTitle != null) { slide = slide.append(MarkdownModel.MD_SPACER) - .append("") - .append(MarkdownModel.MD_SPACER) - .append("") + .append("") .append(slideTitle) .append("") .append(MarkdownModel.MD_SPACER);