Author: duncan
Date: Wed Dec 27 23:59:00 2006
New Revision: 8833

Modified:
   branches/rel-1/freevo/src/www/htdocs/genre.rpy

Log:
[ 1622456 ] genre.rpy produces invalid html
Patch from Harri applied


Modified: branches/rel-1/freevo/src/www/htdocs/genre.rpy
==============================================================================
--- branches/rel-1/freevo/src/www/htdocs/genre.rpy      (original)
+++ branches/rel-1/freevo/src/www/htdocs/genre.rpy      Wed Dec 27 23:59:00 2006
@@ -49,7 +49,7 @@
             cat = Unicode( cat )
             retval += u'<option value="%s" ' % cat
             if cat == category:
-                retval += u'SELECTED'
+                retval += u'selected="selected"'
             retval += u'>%s</option>\n' % cat
         retval += u'</select>\n'
         return retval
@@ -103,16 +103,16 @@
             stime='<input name="stime" type="hidden" value="%i"/>' % 
int(mfrguideinput)
         keepcat = ''
         if category:
-            keepcat = '&category=%s' % category
+            keepcat = '&amp;category=%s' % category
         bforcell=''
         acelltime=mfrnextguide + 60
-        aftercell='&nbsp;&nbsp;&nbsp;<a href="genre.rpy?stime=%i%s">'\
-            +'<img src="images/RightArrow.png" alt="right" border="0"/></a>'\
-            % (acelltime, keepcat)
+        aftercell=('&nbsp;&nbsp;&nbsp;<a href="genre.rpy?stime=%i%s">'
+                   +'<img src="images/RightArrow.png" alt="right" 
border="0"/></a>') \
+                   % (acelltime, keepcat)
         if mfrprevguide > 0:
-            bforcell='<a href="genre.rpy?stime=%i%s">'\
-                +'<img src="images/LeftArrow.png" alt="left" 
border="0"/></a>&nbsp;&nbsp;&nbsp;'\
-                % (mfrprevguide, keepcat)
+            bforcell=('<a href="genre.rpy?stime=%i%s">'
+                      +'<img src="images/LeftArrow.png" alt="left" 
border="0"/></a>&nbsp;&nbsp;&nbsp;') \
+                      % (mfrprevguide, keepcat)
         
         fv.tableOpen('border="0" cellpadding="4" cellspacing="1" width="100%"')
         fv.tableRowOpen('class="chanrow"')

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to