diff --git a/src/Util/Autofill.php b/src/Util/Autofill.php index 64829644c..898b6b66e 100755 --- a/src/Util/Autofill.php +++ b/src/Util/Autofill.php @@ -56,6 +56,10 @@ class Autofill $count += substr_count($text, PHP_EOL); $count += substr_count($text, '
'); + // Ricerca dei caratteri a capo + preg_match_all("/(\r\n|\r|\n)/", $text, $matches); + $count += count($matches[0]); + if ($small) { $count = $count / 3; }