Update of /cvsroot/ht2html/ht2html
In directory usw-pr-cvs1:/tmp/cvs-serv5206
Modified Files:
Skeleton.py
Log Message:
Add class values to each of the page components; this can be useful in
getting the pages to work nicely with CSS.
Index: Skeleton.py
===================================================================
RCS file: /cvsroot/ht2html/ht2html/Skeleton.py,v
retrieving revision 2.8
retrieving revision 2.9
diff -C2 -d -r2.8 -r2.9
*** Skeleton.py 29 Mar 2002 05:59:40 -0000 2.8
--- Skeleton.py 3 Apr 2002 23:01:12 -0000 2.9
***************
*** 198,202 ****
self.__do_corner(corner)
print '<!-- start of banner -->'
! print '<td width="%s%%" bgcolor="%s">' % (
self.get_banner_width(), self.get_lightshade())
print banner
--- 198,202 ----
self.__do_corner(corner)
print '<!-- start of banner -->'
! print '<td width="%s%%" bgcolor="%s" class="banner">' % (
self.get_banner_width(), self.get_lightshade())
print banner
***************
*** 232,237 ****
def __do_corner(self, corner):
print '<!-- start of corner cells -->'
! print '<td width="150" valign="middle" bgcolor="%s">' % (
! self.get_corner_bgcolor())
# it is important not to have a newline between the corner text and
# the table close tag, otherwise layout is messed up
--- 232,237 ----
def __do_corner(self, corner):
print '<!-- start of corner cells -->'
! print '<td width="150" valign="middle" bgcolor="%s" class="corner">' \
! % self.get_corner_bgcolor()
# it is important not to have a newline between the corner text and
# the table close tag, otherwise layout is messed up
***************
*** 247,251 ****
def __do_sidebar(self, sidebar):
print '<!-- start of sidebar cells -->'
! print '<td width="150" valign="top" bgcolor="%s">' % (
self.get_lightshade())
print sidebar
--- 247,251 ----
def __do_sidebar(self, sidebar):
print '<!-- start of sidebar cells -->'
! print '<td width="150" valign="top" bgcolor="%s" class="sidebar">' % (
self.get_lightshade())
print sidebar
***************
*** 256,260 ****
def __do_body(self, body):
print '<!-- start of body cell -->'
! print '<td valign="top" width="%s%%"><br>' % (
self.get_banner_width())
print body
--- 256,260 ----
def __do_body(self, body):
print '<!-- start of body cell -->'
! print '<td valign="top" width="%s%%" class="body"><br>' % (
self.get_banner_width())
print body
***************
*** 262,268 ****
--- 262,272 ----
def __do_cont(self, cont):
+ print '<div class="body">'
+ print '<div class="continuation">'
print '<!-- start of continued wide-body text -->'
print cont
print '<!-- end of continued wide-body text -->'
+ print '</div>'
+ print '</div>'
def __do_head(self):
|