Commit 162dfeea authored by bubi's avatar bubi

#3874 consecutive blank lines does not start a new paragraph. First non-blank...

#3874 consecutive blank lines does not start a new paragraph. First non-blank line starts a new paragraph
parent e5f1dfb0
......@@ -6270,13 +6270,9 @@ if( \$('#$id') ) {
if ($in_paragraph && ((empty($tline) && $in_empty_paragraph === 0) || $contains_block)) {
// If still in paragraph, on meeting first blank line or end of div or start of div created by plugins; close a paragraph
$this->close_blocks($data, $in_paragraph, $listbeg, $divdepth, 1, 0, 0);
} elseif (!$in_paragraph && !$contains_block && !$contains_br) {
} elseif (!$in_paragraph && !$contains_block && !$contains_br && !empty($tline)) {
// If not in paragraph, first non-blank line; start a paragraph; if not start of div created by plugins
$data .= "<p>";
if (empty($tline)) {
$line = '&nbsp;';
$in_empty_paragraph = 1;
}
$in_paragraph = 1;
} elseif ($in_paragraph && $prefs['feature_wiki_paragraph_formatting_add_br'] == 'y' && !$contains_block) {
// A normal in-paragraph line if not close of div created by plugins
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment