From 4812fd25798dfcdf417d2f7be4c554b1d08a9645 Mon Sep 17 00:00:00 2001 From: Sergiotarxz Date: Sun, 17 Sep 2023 01:51:22 +0200 Subject: [PATCH] Allowing more text in previews. --- lib/BurguillosInfo/Preview.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/BurguillosInfo/Preview.pm b/lib/BurguillosInfo/Preview.pm index 69d7a55..20e8f52 100644 --- a/lib/BurguillosInfo/Preview.pm +++ b/lib/BurguillosInfo/Preview.pm @@ -104,15 +104,16 @@ sub _GenerateSVGPreview($self, $title, $content, $image_file, $image_bottom_prev $group->text( x => 10, y => $new_y, - style => { 'font-size' => 50 } + style => { 'font-size' => 42 } )->cdata($title); my $n = 0; for my $line (@content) { + next if $line =~ /^\s*$/; $group->text( x => 10, y => $new_y + 40 + ( 30 * $n ), - style => { 'font-size' => 38 } + style => { 'font-size' => 32 } )->cdata($line); $n++; }