From 23668d4ed014de790fe07a0dc52b1f1b6c18d0f9 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 15 Jan 2013 21:53:11 -0800 Subject: [PATCH] Fix some newline weirdness with StringBlockEditor --- lib/vagrant/util/string_block_editor.rb | 2 +- test/unit/vagrant/util/string_block_editor_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/util/string_block_editor.rb b/lib/vagrant/util/string_block_editor.rb index 80c82c1c6..95b3a6f00 100644 --- a/lib/vagrant/util/string_block_editor.rb +++ b/lib/vagrant/util/string_block_editor.rb @@ -68,7 +68,7 @@ module Vagrant # VAGRANT-END: #{key} BLOCK - @value << "\n#{new_block}" + @value << "#{new_block}" end end end diff --git a/test/unit/vagrant/util/string_block_editor_test.rb b/test/unit/vagrant/util/string_block_editor_test.rb index 205f0eedf..255631b58 100644 --- a/test/unit/vagrant/util/string_block_editor_test.rb +++ b/test/unit/vagrant/util/string_block_editor_test.rb @@ -84,7 +84,7 @@ content DATA new_data = <