From 6ff777183643efb045d167bff654af8149c7336d Mon Sep 17 00:00:00 2001 From: buliabyak <> Date: Tue, 27 Apr 2010 14:09:54 -0300 Subject: [PATCH] fix error in code93 barcode: missing end marker and termination bar --- share/extensions/Barcode/Code93.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/share/extensions/Barcode/Code93.py b/share/extensions/Barcode/Code93.py index 5b013c509..d5646a1a3 100644 --- a/share/extensions/Barcode/Code93.py +++ b/share/extensions/Barcode/Code93.py @@ -55,6 +55,7 @@ encoding = '100010100 101001000 101000100 101000010 100101000 100100100 10010001 class Object(Barcode): def encode(self, text): + # start marker bits = self.encode93('MARKER') # Extend to ASCII charset ( return Array ) @@ -68,6 +69,12 @@ class Object(Barcode): for char in text: bits = bits + self.encode93(char) + # end marker + bits = bits + self.encode93('MARKER') + + # termination bar + bits = bits + '1' + self.inclabel = text return bits -- 2.30.2