mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-11 07:16:10 +01:00
#490 <br/> now insert on the same line as a tag is detected as open.
This commit is contained in:
parent
62e491a1e4
commit
e965f31855
@ -2386,10 +2386,6 @@ function markup(&$body, $track_cites = false, $op = false) {
|
|||||||
$tagsOpen = false;
|
$tagsOpen = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($tagsOpen !== false) {
|
|
||||||
$tagsOpen .= "<br />";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// If tags are closed, check to see if they are now open.
|
// 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.
|
// This counts the number of open tags (that are not self-closing) against the number of complete tags.
|
||||||
@ -2408,10 +2404,16 @@ function markup(&$body, $track_cites = false, $op = false) {
|
|||||||
$tagsOpen = $paragraph;
|
$tagsOpen = $paragraph;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo $tagsOpen;
|
||||||
|
echo "<hr />";
|
||||||
|
|
||||||
// If tags are open, do not close it.
|
// If tags are open, do not close it.
|
||||||
if (!$tagsOpen) {
|
if (!$tagsOpen) {
|
||||||
$bodyNew .= "</p>";
|
$bodyNew .= "</p>";
|
||||||
}
|
}
|
||||||
|
else if ($tagsOpen !== false) {
|
||||||
|
$tagsOpen .= "<br />";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($tagsOpen !== false) {
|
if ($tagsOpen !== false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user