Permalink
Browse files

letter - handle both salutation and no salutation case.

  • Loading branch information...
1 parent 1f5becd commit e476d3d4bdebc10cdc5059e098208b6238eb51d1 John MacFarlane committed Sep 13, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 letter
View
@@ -54,11 +54,14 @@ salutation, saloffset, sallength =
address = if saloffset > 0
PandocRuby.new(rawbody.slice!(0..(saloffset-1)).split("\n").join(" \n").strip).to_latex(:smart)
- rawbody.slice!(0..(sallength-1))
else
""
end
+if sallength > 0
+ rawbody.slice!(0..(sallength-1))
+end
+
closingmatch = rawbody.match(closings)
closing, closingoffset =
if closingmatch

0 comments on commit e476d3d

Please sign in to comment.