Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions repository/Stamp.package/StampMedium.class/instance/readLine.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ readLine
[ stream atEnd or: [ endOfLine ] ] whileFalse: [ | char |
out position >= StampConstants maxHeaderLineLength
ifTrue: [ self error: 'Line too long' ].
char := encoder nextFromStream: stream.
char = Character cr
ifFalse: [
char = Character lf
ifTrue: [ endOfLine := true ]
ifFalse: [ out nextPut: char ] ] ] ]
(char := [ encoder nextFromStream: stream ] on: ZnIncomplete do: [ nil ])
ifNil: [ endOfLine := true ]
ifNotNil: [
char = Character cr
ifFalse: [
char = Character lf
ifTrue: [ endOfLine := true ]
ifFalse: [ out nextPut: char ] ] ] ] ]
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"name" : "TStampFrameWithBody",
"commentStamp" : "<historical>",
"category" : "Stamp-Core"
"classinstvars" : [ ],
"category" : "Stamp-Core",
"instvars" : [ ],
"name" : "TStampFrameWithBody"
}