CVS: ht2html DocsPDOGenerator.py,1.1,1.2

"Fred L. Drake, Jr." <[email protected]> Wed, 07 Apr 2004 22:57:06 -0700
Newsgroups gmane.comp.web.ht2html.devel
Message-ID <[email protected]>
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="">



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click