[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#516589: PTS: packages without an Ubuntu source package have invalid XHTML



tags 516589 patch
thanks

Cause for invalid HTML was empty table, which is not allowed. Following
patch fixes XSL so that table tag is generated only if it has also some
content.

Index: www/xsl/pts.xsl
===================================================================
--- www/xsl/pts.xsl	(revision 2220)
+++ www/xsl/pts.xsl	(working copy)
@@ -796,6 +796,7 @@
 <xsl:template name="ubuntu">
   <!-- Patches list [FG] -->
   <xsl:if test="$other/@ubuntu='yes'">
+    <table class="lefttable" id="ubuntubox">
     <tr class="titlerow">
       <td class="titlecell" colspan="2"><a
           title="Information about Ubuntu for Debian Developers"
@@ -821,6 +822,7 @@
 	</ul>
       </td>
     </tr>
+    </table>
   </xsl:if> 
 </xsl:template>
 
@@ -1225,9 +1227,7 @@
 		      <table class="lefttable">
 			<xsl:call-template name="other-links" />
 		      </table>
-		      <table class="lefttable" id="ubuntubox">
-			<xsl:call-template name="ubuntu" />
-		      </table>
+		      <xsl:call-template name="ubuntu" />
 		  </td></tr>
 		</table>
 
-- 
Tommi Vainikainen

Reply to: