added margin back; added missing spaces

This commit is contained in:
Andreas Preikschat 2011-07-18 18:01:42 +02:00
parent 988e632676
commit baec0f5c69
2 changed files with 21 additions and 19 deletions

View File

@ -41,6 +41,7 @@ HTMLSRC = u"""
<title>OpenLP Display</title>
<style>
*{
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
@ -446,7 +447,7 @@ def build_lyrics_css(item, webkitvers):
The version of qtwebkit we're using
"""
style = """
style = u"""
.lyricstable {
z-index: 5;
position: absolute;
@ -608,7 +609,7 @@ def build_footer_css(item, height):
``item``
Service Item to be processed.
"""
style = """
style = u"""
left: %spx;
bottom: %spx;
width: %spx;
@ -634,7 +635,7 @@ def build_alert_css(alertTab, width):
``alertTab``
Details from the Alert tab for fonts etc
"""
style = """
style = u"""
width: %spx;
vertical-align: %s;
font-family: %s;

View File

@ -495,6 +495,7 @@ class MainDisplay(QtGui.QGraphicsView):
self.isLive, background, image_bytes)
log.debug(u'buildHtml - pre setHtml')
self.webView.setHtml(html)
open(u'/tmp/branch.html', u'w').write(html)
log.debug(u'buildHtml - post setHtml')
if serviceItem.foot_text:
self.footer(serviceItem.foot_text)