diff --git a/lib/snaptoken/commands/diff.rb b/lib/snaptoken/commands/diff.rb
index <HASH>..<HASH> 100644
--- a/lib/snaptoken/commands/diff.rb
+++ b/lib/snaptoken/commands/diff.rb
@@ -46,7 +46,7 @@ class Snaptoken::Commands::Diff < Snaptoken::Commands::BaseCommand
           patch = patches.map(&:to_s).join("\n")
           patch.gsub!(/^ /, "|")
 
-          output << "~~~\n\n"
+          output << "~~~\n\n" unless output.empty?
           output << commit_message << "\n\n" unless commit_message.empty?
           output << patch << "\n" unless patches.empty?
         end
Don't render initial '~~~' in .leg files