summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 850cffd..d38862c 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -141,10 +141,10 @@ module Zorglub
compile!
Dir.mkdir Config.static_base_path
Dir.mkdir File.dirname path
- File.open(path, 'w') {|f| f.write(@content); f.write("\n@mime:"+@mime) }
+ File.open(path, 'w') {|f| f.write("@mime:"+@mime+"\n"); f.write(@content); }
else
content = File.open(path, 'r') {|f| f.read }
- @content = content.sub /\n@mime:(.*)$/,''
+ @content = content.sub /^@mime:(.*)\n/,''
@mime = $1
end
end