#38 _ToShowTarea To eliminate unnecessary line breaks

Cube core
closed
nobody
5
2011-07-14
2011-02-15
Anonymous
No

CUSTOM BLOCK , HTML mode <--> bbcode
To eliminate unnecessary line breaks

html/modules/legacy/kernel/Legacy_TextFilter.class.php
function toShowTarea
about line 356
add line
[code]
if ($html == 1 && $br != 0){
$text = preg_replace("/>((\015\012)|(\015)|(\012))/",">",$text);
$text = preg_replace("/((\015\012)|(\015)|(\012))</","<",$text);
}
[/code]

html/class/module.textsanitizer.php
function toShowTarea
about line 356
add line 292
[code]
if ($html == 1 && $br != 0){
$text = preg_replace("/>((\015\012)|(\015)|(\012))/",">",$text);
$text = preg_replace("/((\015\012)|(\015)|(\012))</","<",$text);
}
[/code]

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-07-14

    この要望は取り下げます

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-07-14
    • status: open --> closed
     
    Last edit: Anonymous 2016-01-21

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks