Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update src/template/style/layout.html

For single.pdf no encode as HTML TOC titles. 
When TOC contains non-ascii character they are printed ok in pdf (ie ñ).
  • Loading branch information...
commit e276d6fb3ff8b8d873b9aeb144d7bf7331d91c93 1 parent 5ad59f5
@amataes amataes authored
Showing with 14 additions and 3 deletions.
  1. +14 −3 src/template/style/layout.html
View
17 src/template/style/layout.html
@@ -52,8 +52,19 @@
<% if (sponsorLogo) { %>
<span id="sponsor">${sponsorLogo}</span>
<% } %>
- </div>
- <p>${subtitle.encodeAsHtml()}</p>
+ </div
+ <%
+ if (single) {
+ %>
+ <p>${subtitle}</p>
+ <%
+ }
+ else {
+ %>
+ <p>${subtitle.encodeAsHtml()}</p>
+ <%
+ }
+ %>
</div>
@@ -77,7 +88,7 @@
sectionWriter = { lvl, section, topSection, prefix ->
if (single) {
%>
- <div class="toc-item" style="margin-left:${lvl * 10}px"><a href="#${ section.name.encodeAsUrlFragment().encodeAsHtml() }"><strong>$prefix</strong><span>${section.title?.encodeAsHtml()}</span></a></div>
+ <div class="toc-item" style="margin-left:${lvl * 10}px"><a href="#${ section.name.encodeAsUrlFragment().encodeAsHtml() }"><strong>$prefix</strong><span>${section.title}</span></a></div>
<%
}
else {
Please sign in to comment.
Something went wrong with that request. Please try again.