diff --git a/checkin_notes b/checkin_notes index ee53be4a9a..1493444fd6 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5018,3 +5018,14 @@ David 3 June 2009 client/ cs_statefile.cpp + +David 3 June 2009 + - web: make [pre] work similar to [code]. fixes #798 + Note: I had to move [pre] to the top of the + preg list to make this work. Not sure why. + + html/ + inc/ + text_transform.inc + user/ + main.css diff --git a/html/inc/text_transform.inc b/html/inc/text_transform.inc index 96abd7ba70..f914e6dded 100644 --- a/html/inc/text_transform.inc +++ b/html/inc/text_transform.inc @@ -108,6 +108,7 @@ function bb2html($text) { $httpsregex = "(?:\"?)https\:\/\/([^\[\"<\ ]+)(?:\"?)"; // List of allowable tags $bbtags = array ( + "@\[pre\](.*?)\[/pre\]@eis", "@\[code\](.*?)\[/code\]@eis", "@\[b\](.*?)\[/b\]@is", "@\[i\](.*?)\[/i\]@is", @@ -122,7 +123,6 @@ function bb2html($text) { "@\[quote\](.*?)\[/quote\]@is", "@\[list\](.*?)\[/list\]@is", "@\[list=1\](.*?)\[/list\]@is", - "@\[pre\](.*?)\[/pre\]@eis", "@\[img\]$urlregex\[/img\]@is", "@\[color=(?:\"?)(.{3,8})(?:\"?)\](.*?)\[/color\]@is", "@((?:
\\1", "
", "
", - "'
'.remove_br('\\1').''", "", "\\2", "\\1