diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-10-27 10:19:40 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-10-27 10:19:40 +0300 |
commit | 842318016d6d80d7f2ec600db24410bcdda47603 (patch) | |
tree | 878238de1a053673954379322e4e7a6e176335cb /Rules | |
parent | 80c3b95d946be63bea227e5540cdf92783d6c16c (diff) |
Handle a situation where no header exists.
Diffstat (limited to 'Rules')
-rw-r--r-- | Rules | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ preprocess do begin title = item.raw_content.match(/^[#] .*$/s).to_s title.gsub!('# ', '') - item[:title] = title + item[:title] = title unless title.empty? # Encoding errors happen on some files for some reason, so we # rescue them. rescue Encoding::CompatibilityError |