Skip to content

Commit

Permalink
Template bug when no =BODY defined
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Nov 7, 2014
1 parent f767adb commit e80e653
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/bio/writers/template.rb
Expand Up @@ -10,7 +10,9 @@ def initialize fn
end

def parse buf
header = body = footer = []
header = []
body = []
footer = []
where = :header
buf.split("\n").each do | line |
case where
Expand All @@ -33,7 +35,7 @@ def parse buf
footer << line
end
end
if body == nil
if body == []
body = header
header = []
end
Expand Down

0 comments on commit e80e653

Please sign in to comment.