[tomboy] Display first bullet in HTML export
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Subject: [tomboy] Display first bullet in HTML export
- Date: Tue, 16 Jun 2009 17:08:58 -0400 (EDT)
commit eb80cf57ee606ae9f5807ed2e1077a36bcfdc9dc
Author: Stefan Schweizer <steve schweizer gmail com>
Date: Tue Jun 16 21:32:03 2009 +0200
Display first bullet in HTML export
The bullet did not show up, when the first list item only consisted of a
link. This patch extends the check for list items that are intended more
than once by testing if the only child element is a list.
Closes: bgo#422954.
Tomboy/Addins/ExportToHtml/ExportToHtml.xsl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Tomboy/Addins/ExportToHtml/ExportToHtml.xsl b/Tomboy/Addins/ExportToHtml/ExportToHtml.xsl
index 2e02c5d..9122c27 100644
--- a/Tomboy/Addins/ExportToHtml/ExportToHtml.xsl
+++ b/Tomboy/Addins/ExportToHtml/ExportToHtml.xsl
@@ -147,7 +147,7 @@
<xsl:template match="tomboy:list-item">
<li>
- <xsl:if test="normalize-space(text()) = ''">
+ <xsl:if test="normalize-space(text()) = '' and count(tomboy:list) = 1 and count(*) = 1">
<xsl:attribute name="style">list-style-type: none</xsl:attribute>
</xsl:if>
<xsl:attribute name="dir">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]