Miglioria conteggio caratteri

This commit is contained in:
Pek5892 2024-05-03 17:23:20 +02:00
parent 8c20974e5b
commit 137a5e6ffe
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ class Autofill
$count += substr_count($text, PHP_EOL);
$count += substr_count($text, '<br>');
// Ricerca dei caratteri a capo
preg_match_all("/(\r\n|\r|\n)/", $text, $matches);
$count += count($matches[0]);
if ($small) {
$count = $count / 3;
}