6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/dod/dod_core/donefile.rb', line 6
def parse_tasks(donefile_path)
contents = File.open(Pathname.new(donefile_path), "r:utf-8", &:read)
if contents.tr!("“”‘’‛", %(""'''))
puts "Your #{path.basename} has had smart quotes sanitised. " \
"To avoid issues in the future, you should not use " \
"TextEdit for editing it. If you are not using TextEdit, " \
"you should turn off smart quotes in your editor of choice.".red
end
contents.each_line.map { |line| line }
end
|