lib/taskjuggler/SheetHandlerBase.rb in taskjuggler-0.2.1 vs lib/taskjuggler/SheetHandlerBase.rb in taskjuggler-0.2.2
- old
+ new
@@ -83,29 +83,9 @@
# There are no cut markers. We just return the original text.
text
end
- # Convert all CR+LF and CR line breaks into LF line breaks.
- def fixLineBreaks(text)
- out = ''
- cr = false
- text.each_utf8_char do |c|
- if c == "\r"
- # We don't know yet if it's a CR or CR+LF.
- cr = true
- else
- if cr
- # If we only found a CR. Replace it with a LF.
- out << "\n" if c != "\n"
- cr = false
- end
- out << c
- end
- end
- out
- end
-
def setWorkingDir
# Make sure the user has provided a properly setup config file.
error('\'smtpServer\' not configured') unless @smtpServer
error('\'senderEmail\' not configured') unless @senderEmail