Avoiding to have more than 3 lines of content per preview.
This commit is contained in:
parent
4812fd2579
commit
070b6f8d0e
@ -116,6 +116,7 @@ sub _GenerateSVGPreview($self, $title, $content, $image_file, $image_bottom_prev
|
|||||||
style => { 'font-size' => 32 }
|
style => { 'font-size' => 32 }
|
||||||
)->cdata($line);
|
)->cdata($line);
|
||||||
$n++;
|
$n++;
|
||||||
|
last if $n > 2;
|
||||||
}
|
}
|
||||||
return $svg->xmlify;
|
return $svg->xmlify;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user