line breaks insertion in summary field

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
User avatar
habi
Posts: 166
Joined: Sun 15. Feb 2004, 13:39
Location: Rutschwil, Switzerland
Contact:

line breaks insertion in summary field

Post by habi »

I detected (only on Mac/Safari tested), that in the article admin, if I entered a return in the text of the summary field, the engine adds each time I entered the admin of this summary a additional line break and so the space of the so separated paragraphs increase.
dibo
Posts: 7
Joined: Fri 20. Aug 2004, 16:53
Contact:

Post by dibo »

To solve the problem you have to change a little bit code in:

include/inc_lib/article.editcontent.inc.php

line 76

Code:

Code: Select all

if(!$_SESSION["wysiwyg_editor"]) $article["article_summary"] = nl2br($article["article_summary"]);
please uncomment:

Code:

Code: Select all

//if(!$_SESSION["wysiwyg_editor"]) $article["article_summary"] = nl2br($article["article_summary"]);
Locked