Hi Jan,
Jan Holesovsky schrieb:
Hi,
Olivier recently resurrected the HelpAuthoring.oxt extension that makes
it much easier to edit help files, and I've pushed that to git now:
http://cgit.freedesktop.org/libreoffice/contrib/dev-tools/tree/helpauthoring
I don't want to announce it too widely yet, tough; it has a bug that
from some reason, the new edits appear in bold when saved (they appear
enclosed in <emph> / </emph>).
Olivier, anybody - can you please have a look why that happens? Cannot
do myself ATM :-(
I think, that it is this place
--- soffice2xmlhelp.xsl 2015-07-09 23:02:23.724930000 +0200
+++ soffice2xmlhelp.xsl.new 2015-07-09 23:00:43.900355900 +0200
@@ -1141,7 +1141,7 @@
<xsl:when test="starts-with($masterstyle,'hlp_aux_')">
<xsl:apply-templates />
</xsl:when>
- <xsl:when
test="not(starts-with($masterstyle,'hlp_'))"><emph><xsl:apply-templates/></emph></xsl:when>
+ <xsl:when
test="not(starts-with($masterstyle,'hlp_'))"><xsl:apply-templates/></xsl:when>
<xsl:when test="$masterstyle =
'hlp_emph'"><emph><xsl:apply-templates/></emph></xsl:when>
<xsl:otherwise>
<xsl:variable name="spanstyle"><xsl:value-of
select="substring-after($masterstyle,'hlp_')"/></xsl:variable><item
type="{$spanstyle}"><xsl:apply-templates /></item></xsl:otherwise>
At least, this removes the wrong <emph>-tags. But it might have side
effects. Therefore a review is needed.
Kind regards
Regina
--- soffice2xmlhelp.xsl 2015-07-09 23:02:23.724930000 +0200
+++ soffice2xmlhelp.xsl.new 2015-07-09 23:00:43.900355900 +0200
@@ -1141,7 +1141,7 @@
<xsl:when test="starts-with($masterstyle,'hlp_aux_')">
<xsl:apply-templates />
</xsl:when>
- <xsl:when
test="not(starts-with($masterstyle,'hlp_'))"><emph><xsl:apply-templates/></emph></xsl:when>
+ <xsl:when
test="not(starts-with($masterstyle,'hlp_'))"><xsl:apply-templates/></xsl:when>
<xsl:when test="$masterstyle =
'hlp_emph'"><emph><xsl:apply-templates/></emph></xsl:when>
<xsl:otherwise>
<xsl:variable name="spanstyle"><xsl:value-of
select="substring-after($masterstyle,'hlp_')"/></xsl:variable><item
type="{$spanstyle}"><xsl:apply-templates /></item></xsl:otherwise>
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice