commit:     2957b24ceea553281746f6b4528f757f4f5d6b54
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 21 23:18:09 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Oct 21 23:18:09 2023 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=2957b24c

devbook.xsl: Force end tag for empty li elements

In order to make "tidy" happy.

For some reason, xsltproc omits the end tag if the element is empty.
Apparently, an empty comment is enough to make it think differently.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 bin/gen-eclass-html.sh | 4 ++--
 devbook.xsl            | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/gen-eclass-html.sh b/bin/gen-eclass-html.sh
index 74e25dc..d3e8480 100755
--- a/bin/gen-eclass-html.sh
+++ b/bin/gen-eclass-html.sh
@@ -30,11 +30,11 @@ IFS='' read -r -d '' HEADER << 'EOF'
 <li><a href="https://bugs.gentoo.org/"; title="Report issues and find common 
issues"><span class="fa fa-bug fa-fw"></span> Bugs</a></li>
 <li><a href="https://forums.gentoo.org/"; title="Discuss with the 
community"><span class="fa fa-comments-o fa-fw"></span> Forums</a></li>
 <li><a href="https://packages.gentoo.org/"; title="Find software for your 
Gentoo"><span class="fa fa-hdd-o fa-fw"></span> Packages</a></li>
-<li class="divider">
+<li class="divider"></li>
 <li><a href="https://planet.gentoo.org/"; title="Find out what's going on in 
the developer community"><span class="fa fa-rss fa-fw"></span> Planet</a></li>
 <li><a href="https://archives.gentoo.org/"; title="Read up on past 
discussions"><span class="fa fa-archive fa-fw"></span> Archives</a></li>
 <li><a href="https://sources.gentoo.org/"; title="Browse our source code"><span 
class="fa fa-code fa-fw"></span> Sources</a></li>
-<li class="divider">
+<li class="divider"></li>
 <li><a href="https://infra-status.gentoo.org/"; title="Get updates on the 
services provided by Gentoo"><span class="fa fa-server fa-fw"></span> Infra 
Status</a></li>
 </ul>
 </div>

diff --git a/devbook.xsl b/devbook.xsl
index e06d6e0..9289eab 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -518,11 +518,11 @@
                           <li><a href="https://bugs.gentoo.org/"; title="Report 
issues and find common issues"><span class="fa fa-bug fa-fw"></span> 
Bugs</a></li>
                           <li><a href="https://forums.gentoo.org/"; 
title="Discuss with the community"><span class="fa fa-comments-o fa-fw"></span> 
Forums</a></li>
                           <li><a href="https://packages.gentoo.org/"; 
title="Find software for your Gentoo"><span class="fa fa-hdd-o fa-fw"></span> 
Packages</a></li>
-                          <li class="divider"></li>
+                          <li class="divider"><xsl:comment/></li>
                           <li><a href="https://planet.gentoo.org/"; title="Find 
out what's going on in the developer community"><span class="fa fa-rss 
fa-fw"></span> Planet</a></li>
                           <li><a href="https://archives.gentoo.org/"; 
title="Read up on past discussions"><span class="fa fa-archive fa-fw"></span> 
Archives</a></li>
                           <li><a href="https://sources.gentoo.org/"; 
title="Browse our source code"><span class="fa fa-code fa-fw"></span> 
Sources</a></li>
-                          <li class="divider"></li>
+                          <li class="divider"><xsl:comment/></li>
                           <li><a href="https://infra-status.gentoo.org/"; 
title="Get updates on the services provided by Gentoo"><span class="fa 
fa-server fa-fw"></span> Infra Status</a></li>
                         </ul>
                       </div>

Reply via email to