Commit 7339c595 authored by Joerg-Holger Panzer's avatar Joerg-Holger Panzer
Browse files

Add label to PDF disclaimer, if title is missing

parent c8206a85
......@@ -883,6 +883,26 @@ class ImgToPdfConverter
end
add_label_and_value('Titel', title_arr, pdf)
elsif check_nil_or_empty_string disclaimer_info.log_label_arr
if disclaimer_info.log_label_arr.instance_of?(Array)
title_arr = disclaimer_info.log_label_arr.map do |title|
if title.size > 80
title[0..80] + '...'
else
title
end
end
else
if disclaimer_info.log_label_arr.size > 80
title_arr = disclaimer_info.log_label_arr[0..80] + '...'
else
title_arr = disclaimer_info.log_label_arr
end
end
add_label_and_value('Label', title_arr, pdf)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment