Grafoscopio/src/Grafoscopio/GrafoscopioFmtEndingLinebre...

17 lines
555 B
Smalltalk

Class {
#name : #GrafoscopioFmtEndingLinebreak,
#superclass : #GrafoscopioFormat,
#category : #'Grafoscopio-Pillar-TextFormat'
}
{ #category : #'target resize' }
GrafoscopioFmtEndingLinebreak >> beInstalledIn: aNode [
" Should be using OSPlatform current lineEnding, but our text presenter does not support to have 2 character representation "
self installTextNodeAtRightWithValue: String cr in: aNode
]
{ #category : #'target resize' }
GrafoscopioFmtEndingLinebreak >> value: aString [
^aString , OSPlatform current lineEnding
]