File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,10 @@ SpAbstractWidgetPresenter class >> documentExampleCode [
131
131
and : [ method selector = self documentExampleCodeSelector ] ]
132
132
ifNone: [ ^ nil ].
133
133
134
- ^ (exampleMethod sourceCode lines
134
+ ^ (( exampleMethod sourceCode lines
135
135
allButFirst " Remove method name"
136
136
reject: [ :each | each trimLeft beginsWith: ' <' ]) " Remove pragmas"
137
- asStringWithCr
137
+ joinUsing: Character cr)
138
138
trimmed
139
139
]
140
140
Original file line number Diff line number Diff line change @@ -78,7 +78,13 @@ SpDialogPresenter class >> documentExampleCode [
78
78
detect: [ :method | method protocolName = #example and : [ method selector = #exampleModal ] ]
79
79
ifNone: [ ^ nil ].
80
80
81
- ^ (exampleMethod sourceCode lines allButFirst reject: [ :each | each trimLeft beginsWith: ' <' ]) asStringWithCr trimmed " Remove method name" " Remove pragmas"
81
+ ^ ((exampleMethod sourceCode lines
82
+ " Remove method name"
83
+ allButFirst
84
+ " Remove pragmas"
85
+ reject: [ :each | each trimLeft beginsWith: ' <' ])
86
+ joinUsing: Character cr)
87
+ trimmed
82
88
]
83
89
84
90
{ #category : ' documentation' }
You can’t perform that action at this time.
0 commit comments