Update of /cvsroot/ht2html/ht2html
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26857
Modified Files:
DocsPDOGenerator.py
Log Message:
simplify! getting the right stylesheet makes all the difference in
the world
Index: DocsPDOGenerator.py
===================================================================
RCS file: /cvsroot/ht2html/ht2html/DocsPDOGenerator.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DocsPDOGenerator.py 8 Apr 2004 05:45:49 -0000 1.1
--- DocsPDOGenerator.py 8 Apr 2004 05:56:49 -0000 1.2
***************
*** 23,36 ****
def get_banner(self):
banner = PDOGenerator.get_banner(self)
! searchbox = SEARCHBOX % self.get_lightshade()
! banner = banner.replace("</tr>", searchbox + "</tr>", 1)
return banner
- # %-substitutions will be performed on this string
SEARCHBOX = '''
! <td rowspan="2" id="search" align="right" width="30%%"
! style="padding: 5pt; vertical-align: middle;"
! bgcolor="%s">
<form method="get" action="http://www.google.com/search">
Search: <input id="q" name="q" size="30" value="">
--- 23,32 ----
def get_banner(self):
banner = PDOGenerator.get_banner(self)
! banner = banner.replace("</tr>", SEARCHBOX + "</tr>", 1)
return banner
SEARCHBOX = '''
! <td rowspan="2" id="search" align="right" width="30%">
<form method="get" action="http://www.google.com/search">
Search: <input id="q" name="q" size="30" value="">
|