[Libreoffice-commits] dev-tools.git: help3/html
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Jan 12 11:31:44 UTC 2019
help3/html/ed_transform.xsl | 4 +++-
help3/html/xhpeditor.css | 4 ++++
2 files changed, 7 insertions(+), 1 deletion(-)
New commits:
commit 17a221dbc0e449fd48759f36898ce42537a2d5ad
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
AuthorDate: Sat Jan 12 08:13:36 2019 -0200
Commit: Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Sat Jan 12 12:31:27 2019 +0100
Add some debug highlight for <embed> and <image>
Wrap <embed> in a light gray background and show href in red
Add image href in red
Change-Id: If435d0b476c01a737ba07470ddaf8512d2cd6f3b
Reviewed-on: https://gerrit.libreoffice.org/66210
Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>
diff --git a/help3/html/ed_transform.xsl b/help3/html/ed_transform.xsl
index f3d4f85..a31e280 100644
--- a/help3/html/ed_transform.xsl
+++ b/help3/html/ed_transform.xsl
@@ -56,7 +56,7 @@
<!-- Installation -->
<xsl:variable name="online" select="$local!='yes'"/>
-<xsl:variable name="target" select="'/ed/'"/>
+<xsl:variable name="target" select="'/help_editor/'"/>
<xsl:variable name="source" select="'/hc2/'"/>
<!-- meta data variables from the help file -->
@@ -1081,6 +1081,7 @@
<xsl:call-template name="convert2px"><xsl:with-param name="value" select="@height"/></xsl:call-template>
</xsl:if>
</xsl:variable>
+ <p class="bug">image href: <xsl:value-of select="$src2"/></p>
<img src="{$src2}" alt="{$alt}" title="{$alt}" height="{$height}" width="{$width}">
<xsl:if test="ancestor::tablecell">
<xsl:attribute name="class"><xsl:value-of select="'imageicon'"/></xsl:attribute>
@@ -1261,6 +1262,7 @@
<xsl:with-param name="doc" select="$docum" />
<xsl:with-param name="anchor" select="$anc" />
</xsl:call-template>
+ <p class="bug">Embed href: <xsl:value-of select="$href"/>#<xsl:value-of select="$anc"/></p>
</div>
</xsl:template>
diff --git a/help3/html/xhpeditor.css b/help3/html/xhpeditor.css
index 83d4a8e..519ce32 100644
--- a/help3/html/xhpeditor.css
+++ b/help3/html/xhpeditor.css
@@ -299,6 +299,10 @@ icontable {
#DisplayArea footer p {
font-size: 0.98rem;
}
+.embedded {
+ background-color: #eeeeee;
+ border:solid 1px black;
+}
.bug {
color: red;
}
More information about the Libreoffice-commits
mailing list