mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-03 19:47:25 +01:00
Merge pull request #491 from 8n-tech/master
Resolved newline issues with #490
This commit is contained in:
commit
fb2743ca9b
@ -2386,10 +2386,6 @@ function markup(&$body, $track_cites = false, $op = false) {
|
||||
$tagsOpen = false;
|
||||
}
|
||||
}
|
||||
|
||||
if ($tagsOpen !== false) {
|
||||
$tagsOpen .= "<br />";
|
||||
}
|
||||
}
|
||||
// If tags are closed, check to see if they are now open.
|
||||
// This counts the number of open tags (that are not self-closing) against the number of complete tags.
|
||||
@ -2412,6 +2408,9 @@ function markup(&$body, $track_cites = false, $op = false) {
|
||||
if (!$tagsOpen) {
|
||||
$bodyNew .= "</p>";
|
||||
}
|
||||
else if ($tagsOpen !== false) {
|
||||
$tagsOpen .= "<br />";
|
||||
}
|
||||
}
|
||||
|
||||
if ($tagsOpen !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user