when using the bbcode mimetype a space is just a space. A return is a return. But as opposed to HTML, two spaces are now non-breaking. A tab (assuming you can figure out how to enter one in a text field) is now four non-breaking spaces. This should let us insert code snippets with much more readable indentation.
This commit is contained in:
parent
6a2cb837af
commit
c6e527f6fe
@ -259,6 +259,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
|
||||
$Text = str_replace(array("\n","\r"), array('',''),$Text);
|
||||
|
||||
|
||||
$Text = str_replace(array("\t"," "),array(" "," "),$Text);
|
||||
|
||||
// Set up the parameters for a URL search string
|
||||
$URLSearchString = "^\[\]";
|
||||
|
Reference in New Issue
Block a user