Skip to content

Commit 582969a

Browse files
author
Hugo Osvaldo Barrera
committed
Fix bad indentation
1 parent afe780a commit 582969a

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

barcode/writer.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -180,16 +180,16 @@ def packed(self, line):
180180
line += " "
181181
c = 1
182182
for i in range(0, len(line) - 1):
183-
if line[i] == line[i + 1]:
184-
c += 1
185-
else:
186-
if line[i] == "1":
187-
yield (c, 1)
188-
elif line[i] == "G":
189-
yield (c, self.guard_height_factor)
190-
else:
191-
yield (-c, self.guard_height_factor)
192-
c = 1
183+
if line[i] == line[i + 1]:
184+
c += 1
185+
else:
186+
if line[i] == "1":
187+
yield (c, 1)
188+
elif line[i] == "G":
189+
yield (c, self.guard_height_factor)
190+
else:
191+
yield (-c, self.guard_height_factor)
192+
c = 1
193193

194194
def render(self, code):
195195
"""Renders the barcode to whatever the inheriting writer provides,

0 commit comments

Comments
 (0)