summaryrefslogtreecommitdiff
path: root/modules/filter
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-22 23:24:26 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-22 23:24:26 +0000
commitac4c8f7ab019f2b6d77e2718a0bda0a1c6a4bd23 (patch)
tree504da530868d5672961d8a3d381f4577bc67c67d /modules/filter
parented48af4c411b9199b947b6887fba34550be5aa20 (diff)
downloadbrdo-ac4c8f7ab019f2b6d77e2718a0bda0a1c6a4bd23.tar.gz
brdo-ac4c8f7ab019f2b6d77e2718a0bda0a1c6a4bd23.tar.bz2
#203274 by Pasqualle: remove excessive witespace from our code (minor)
Diffstat (limited to 'modules/filter')
-rw-r--r--modules/filter/filter.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 3a2fa4723..a8106a709 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -160,7 +160,7 @@ function filter_filter_tips($delta, $format, $long = FALSE) {
global $base_url;
switch ($delta) {
case 0:
- if (variable_get("filter_html_$format", FILTER_HTML_STRIP) == FILTER_HTML_STRIP) {
+ if (variable_get("filter_html_$format", FILTER_HTML_STRIP) == FILTER_HTML_STRIP) {
if ($allowed_html = variable_get("allowed_html_$format", '<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>')) {
switch ($long) {
case 0:
@@ -724,7 +724,7 @@ function _filter_url($text, $format) {
// Pass length to regexp callback
_filter_url_trim(NULL, variable_get('filter_url_length_'. $format, 72));
- $text = ' '. $text .' ';
+ $text = ' '. $text .' ';
// Match absolute URLs.
$text = preg_replace_callback("`(<p>|<li>|<br\s*/?>|[ \n\r\t\(])((http://|https://|ftp://|mailto:|smb://|afp://|file://|gopher://|news://|ssl://|sslv2://|sslv3://|tls://|tcp://|udp://)([a-zA-Z0-9@:%_+*~#?&=.,/;-]*[a-zA-Z0-9@:%_+*~#&=/;-]))([.,?!]*?)(?=(</p>|</li>|<br\s*/?>|[ \n\r\t\)]))`i", '_filter_url_parse_full_links', $text);