Avoiding to have more than 3 lines of content per preview.

This commit is contained in:
Sergiotarxz 2023-09-17 01:55:53 +02:00
parent 4812fd2579
commit 070b6f8d0e
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ sub _GenerateSVGPreview($self, $title, $content, $image_file, $image_bottom_prev
style => { 'font-size' => 32 }
)->cdata($line);
$n++;
last if $n > 2;
}
return $svg->xmlify;
}