Hey Guille,
I think I found the fix. But I would like to run by you first. I want to get
a review before making a PR.
In the method nextPut: in ZnCrProtableWriteStream, when a new line character
is sent using 'OSPlatform current lineEnding', there isn`t any statement
which satisfies in this nextPut:. So at the end where the character is
checked if it`s a new line, when I added a ifFalse statement and added self
newline.
Full code is as follows
nextPut: aCharacter
(String crlf includes: aCharacter )
ifFalse: [
previous ifNotNil: [ self newLine ].
^ stream nextPut: aCharacter ].
previous = Character cr
ifTrue: [ self newLine ].
aCharacter ~= Character lf
ifTrue: [ previous := aCharacter ]
ifFalse:[ self newLine ].
The only change is the last line.
Rajula
--
View this message in context:
http://forum.world.st/New-line-on-command-line-tp4960327p4961385.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.