#OTHER by exept
authorClaus Gittinger <cg@exept.de>
Mon, 26 Aug 2019 23:17:32 +0200
changeset 5173 99246e219989
parent 5172 57b5f6ff9fb1
child 5174 09dec635671b
#OTHER by exept changed: #nextPut: returns its argument
EpsonFX1PrinterStream.st
--- a/EpsonFX1PrinterStream.st	Mon Aug 26 23:16:57 2019 +0200
+++ b/EpsonFX1PrinterStream.st	Mon Aug 26 23:17:32 2019 +0200
@@ -108,6 +108,7 @@
 nextPut:aCharacter
     "send aCharacter to the printer.
      Catch special characters.
+     Answer aCharacter.
      - currently only german umlauts are handled - If you own this type
        of printer and depend on it, add more translation here.
      See https://files.support.epson.com/pdf/fx100_/fx100_u1.pdf table6.2."
@@ -117,7 +118,7 @@
     ascii := aCharacter codePoint.
     (ascii < 128) ifTrue:[
         stream nextPut:aCharacter.
-        ^ self.
+        ^ aCharacter.
     ].
     xLation := #(
                 "/ german
@@ -154,6 +155,7 @@
     xLation notNil ifTrue:[
         self character:(xLation second) fromCharacterSet:(xLation third)
     ].
+    ^ aCharacter
 
     "Modified: 18.5.1996 / 09:03:18 / cg"
 ! !