Skip to content
Snippets Groups Projects
Commit a0c34e77 authored by Jared Hancock's avatar Jared Hancock
Browse files

Better detection of headline width

parent fc92fb01
No related branches found
No related tags found
No related merge requests found
......@@ -361,7 +361,8 @@ class HtmlHeadlineElement extends HtmlBlockElement {
default:
return $headline;
}
$headline .= "\n" . str_repeat($line, strpos($headline, "\n", 1) - 1) . "\n";
$length = max(array_map('strlen', explode("\n", $headline)));
$headline .= "\n" . str_repeat($line, $length) . "\n";
return $headline;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment