Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
6b246c0d
Commit
6b246c0d
authored
Jan 05, 2017
by
Raphaël
Browse files
Line break enabled for hypertext links
parent
c1ac4703
Changes
1
Hide whitespace changes
Inline
Side-by-side
hdoc_to_pdf/xsl/last_transformer.xsl
View file @
6b246c0d
...
@@ -27,6 +27,26 @@
...
@@ -27,6 +27,26 @@
</body>
</body>
</xsl:template>
</xsl:template>
<!-- Traitement des liens hypertextes pour autoriser le saut à la ligne-->
<xsl:template
match=
"a"
>
<a>
<xsl:copy-of
select=
"@*"
/>
<xsl:call-template
name=
"addWordBreak"
>
<xsl:with-param
name=
"input"
select=
"."
/>
</xsl:call-template>
</a>
</xsl:template>
<xsl:template
name=
"addWordBreak"
>
<xsl:param
name=
"input"
/>
<xsl:value-of
select=
"substring($input,1,1)"
/><wbr
/>
<xsl:if
test=
"substring($input,2)"
>
<xsl:call-template
name=
"addWordBreak"
>
<xsl:with-param
name=
"input"
select=
"substring($input,2)"
/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- Cleaning des footers vides -->
<!-- Cleaning des footers vides -->
<xsl:template
match=
"footer[not(node())]"
/>
<xsl:template
match=
"footer[not(node())]"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment