summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-07-27 23:58:03 -0600
committerDan Allen <dan.j.allen@gmail.com>2022-07-28 04:53:22 -0600
commit6a80bb7eb043e103f7d7eaefaac10cd935fd46af (patch)
treebe64396d73b47045e620af77b930053ade5379f4 /lib
parent0e6eda40ff2c0de6507815756b6ee34cf7afd6aa (diff)
apply text transformation when checking height of heading for orphan prevention
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/pdf/converter.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asciidoctor/pdf/converter.rb b/lib/asciidoctor/pdf/converter.rb
index 3dc1c0ea..76a59725 100644
--- a/lib/asciidoctor/pdf/converter.rb
+++ b/lib/asciidoctor/pdf/converter.rb
@@ -2479,7 +2479,7 @@ module Asciidoctor
end
%(#{anchor}<sup>[<a anchor="_footnotedef_#{index}">#{label}</a>]</sup>)
elsif node.type == :xref
- %(<sup><font color="#{theme.role_unresolved_font_color}">[#{node.text}]</font></sup>)
+ %(<sup>[<font color="#{theme.role_unresolved_font_color}">#{node.text}</font>]</sup>)
else
log :warn, %(unknown footnote type: #{node.type.inspect})
nil
@@ -2827,6 +2827,7 @@ module Asciidoctor
advance_page if orphaned
else
theme_font :heading, level: (hlevel = opts[:level]) do
+ title = transform_text title, @text_transform if @text_transform
h_padding_t, h_padding_r, h_padding_b, h_padding_l = expand_padding_value @theme[%(heading_h#{hlevel}_padding)]
h_fits = indent h_padding_l, h_padding_r do
# FIXME: this height doesn't account for impact of text transform or inline formatting