Formatting of empty Lines in Wiki-Pages is not handled properly
- Status
- Closed
- Subject
- Formatting of empty Lines in Wiki-Pages is not handled properly
- Version
- 6.x
7.x - Category
- Error
- Usability
- Patch
- Consistency
- Feature
- Article
Wiki Syntax (text area, parser, external wiki, etc) - Submitted by
- bubi
- Lastmod by
- bubi
- Rating
- Description
A blank line out of a paragraph should not start a new paragraph (as in 4.2). If feature_wiki_paragraph_formatting_add_br is on, an empty line is created on top of the new paragraph.
$data .= "<p>";
It comes from lib/tikilib.php line 6838ff
} elseif (!$in_paragraph && !$contains_block) {
// If not in paragraph, first non-blank line; start a paragraph; if not start of div created by plugins...
in the comment it is stated that the paragraph should only begin at first NON-BLANK line
- Solution
I have been able to correct it by changing it to:
} elseif (!$in_paragraph && !$contains_block /* bubi: first non-blank line starts a para */ && !empty($tline)) {
$data .= "<p>";
// If not in paragraph, first non-blank line; start a paragraph; if not start of div created by plugins
This appears to be solved by r34436 for Tiki 8. Chealer- Importance
- 7
- Priority
- 35
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3874
- Created
- Monday 09 May, 2011 09:11:06 UTC
by bubi - LastModif
- Tuesday 11 October, 2011 23:33:14 UTC