lib/taskjuggler/SheetReceiver.rb in taskjuggler-0.2.2 vs lib/taskjuggler/SheetReceiver.rb in taskjuggler-3.0.0
- old
+ new
@@ -144,16 +144,18 @@
private
# Isolate the actual syntax from _sheet_ and process it.
def processSheet(sheet)
- @sheet = @sheetWasAttached ? cutOut(sheet) : sheet
-
begin
- @sheet = @sheet.forceUTF8Encoding
+ @sheet = sheet.forceUTF8Encoding
rescue
error($!)
end
+
+ # If the sheet contains special cut markers, we extract only the content
+ # within those markers.
+ @sheet = cutOut(@sheet)
# A valid sheet must have the poper header line.
if @sheetHeader.match(@sheet)
checkSignature(@sheet)
# Extract the resource ID and the end date from the sheet.