lib/asciidoctor/pdf/linewrap/ja.rb in asciidoctor-pdf-linewrap-ja-0.6.0 vs lib/asciidoctor/pdf/linewrap/ja.rb in asciidoctor-pdf-linewrap-ja-0.7.0
- old
+ new
@@ -44,9 +44,16 @@
list_items = document.find_by context: :list_item
list_items.each do |list_item|
raw_text = get_raw_text(list_item)
list_item.text = Asciidoctor::Pdf::Linewrap::Ja::Converter::insert_zero_width_space(raw_text)
end
+
+ admonitions = document.find_by context: :admonition
+ admonitions.each do |admonition|
+ admonition.lines.each_with_index do |line, i|
+ admonition.lines[i] = Asciidoctor::Pdf::Linewrap::Ja::Converter::insert_zero_width_space(line)
+ end
+ end
end
def get_raw_text(item)
if item.instance_variable_defined?('@text')
return item.instance_variable_get('@text')