#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Tue, 30 May 2017 13:59:53 +0200
changeset 6162 958615859654
parent 6161 6763327fd155
child 6163 a43ebb055c61
#FEATURE by cg class: TextCollector changed: #color:
TextCollector.st
--- a/TextCollector.st	Mon May 29 15:30:55 2017 +0200
+++ b/TextCollector.st	Tue May 30 13:59:53 2017 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
 	      All Rights Reserved
@@ -1159,13 +1157,12 @@
 !
 
 color:aColor
-    aColor isNil ifTrue:[
-        currentEmphasis := Text removeEmphasis:#color from:currentEmphasis
-    ] ifFalse:[
+    currentEmphasis := Text removeEmphasis:#color from:currentEmphasis.
+    aColor notNil ifTrue:[
         currentEmphasis := Text addEmphasis:(#color->aColor) to:currentEmphasis
     ].
 
-    "Modified: / 26.3.1999 / 14:29:21 / cg"
+    "Modified: / 30-05-2017 / 09:37:26 / cg"
 !
 
 italic