commit: 322da3e34dc68d83b8d5cfd4431c8d9ebb092add Author: Max Magorsch <arzano <AT> gentoo <DOT> org> AuthorDate: Mon Mar 2 15:43:22 2020 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Tue Mar 3 08:27:47 2020 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=322da3e3
Fix list-groups in text browsers Closes: https://bugs.gentoo.org/711286 Signed-off-by: Max Magorsch <arzano <AT> gentoo.org> [Removed extra newline before </li>.] Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> devbook.xsl | 13 +++++++------ devmanual.css | 13 +++++++++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/devbook.xsl b/devbook.xsl index 8024e7f..ea15885 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -204,14 +204,15 @@ <xsl:template match="ul"> <xsl:choose> <xsl:when test="@class='list-group'"> - <div class="list-group"> + <ul class="list-group fix-links"> <xsl:for-each select="li"> - <xsl:apply-templates> - <xsl:with-param name="class">list-group-item</xsl:with-param> - </xsl:apply-templates> - <xsl:value-of select='$newline'/> + <li class="list-group-item"> + <xsl:apply-templates> + <xsl:with-param name="class">list-group-item</xsl:with-param> + </xsl:apply-templates> + </li> </xsl:for-each> - </div> + </ul> </xsl:when> <xsl:otherwise> <ul><xsl:apply-templates/></ul> diff --git a/devmanual.css b/devmanual.css index 24b3551..288f81d 100644 --- a/devmanual.css +++ b/devmanual.css @@ -73,4 +73,17 @@ pre span.Statement { color: darkred; } margin-top: 3px; } +/* + * .fix-links can be used to fix listgroups in text browsers + * see https://bugs.gentoo.org/show_bug.cgi?id=711286 + */ + +.fix-links > li { + padding: 0px; +} + +.fix-links > li > a { + border: none; +} + /* vim: set ts=4 tw=80 et : */