Skip to content

Commit

Permalink
Make the whole row double height (or not).
Browse files Browse the repository at this point in the history
Fixes the weird looking bits in double height html where the start
of the row isn't double height.
  • Loading branch information
ali1234 committed Mar 29, 2016
1 parent a9ebbfd commit 6711335
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions teletext/t42/printer.py
Expand Up @@ -9,7 +9,7 @@ def __init__(self, tt, colour=True, codepage=0):
self.bg = 0
self.mosaic = False
self.solid = True
self.double = False
self.double = True if 0x0d in tt else False
self.flash = False
self.conceal = False
self.boxed = False
Expand Down Expand Up @@ -69,12 +69,6 @@ def transform(self, c):
elif l == 0xb: # steady
self.boxed = False
ret = ' '+self.setstyle()
elif l == 0xc: # single height
self.double = False
ret = ' '+self.setstyle()
elif l == 0xd: # double height
self.double = True
ret = ' '+self.setstyle()
else:
ret = ' '
#print hex(int(c&0xff))
Expand Down

0 comments on commit 6711335

Please sign in to comment.