summaryrefslogtreecommitdiffstats
path: root/htmlbuffer.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-01-07 20:01:20 +0000
committerMatt Wilson <msw@redhat.com>2002-01-07 20:01:20 +0000
commit40665518ebd87854a6c52893cb98f116cc1f7ee1 (patch)
tree731af82133b310842e122686e755ba6c594ad085 /htmlbuffer.py
parenta60815221f659f973bcff0891667f2a01f288dec (diff)
downloadanaconda-40665518ebd87854a6c52893cb98f116cc1f7ee1.tar.gz
anaconda-40665518ebd87854a6c52893cb98f116cc1f7ee1.tar.xz
anaconda-40665518ebd87854a6c52893cb98f116cc1f7ee1.zip
use numbers for these numeric properties
Diffstat (limited to 'htmlbuffer.py')
-rw-r--r--htmlbuffer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/htmlbuffer.py b/htmlbuffer.py
index 6cac809e9..5233d1778 100644
--- a/htmlbuffer.py
+++ b/htmlbuffer.py
@@ -44,8 +44,8 @@ class HTMLBuffer(HTMLParser.HTMLParser):
tag.set_property('font', '%s %d' % (baseFont, baseSize))
tag = self.buffer.create_tag('p')
- tag.set_property('pixels-above-lines', '5')
- tag.set_property('pixels-below-lines', '5')
+ tag.set_property('pixels-above-lines', 5)
+ tag.set_property('pixels-below-lines', 5)
tag = self.buffer.create_tag('tt')
tag.set_property('font', 'Monospace %d' % (baseSize,))
@@ -70,8 +70,8 @@ class HTMLBuffer(HTMLParser.HTMLParser):
tag = self.buffer.create_tag('ul')
tag.set_property('left-margin', 20)
# reset spacing in paragraphs incase this list is inside <p>
- tag.set_property('pixels-above-lines', '0')
- tag.set_property('pixels-below-lines', '0')
+ tag.set_property('pixels-above-lines', 0)
+ tag.set_property('pixels-below-lines', 0)
tag = self.buffer.create_tag('li')
tag.set_property('indent', -9)