Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
date_ical
Commits
fff39f4c
Commit
fff39f4c
authored
Nov 05, 2013
by
Robert Rollins
Browse files
Exporting <blockquote> elements should now be slightly less ugly.
parent
28759b5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
date_ical.module
View file @
fff39f4c
...
...
@@ -231,7 +231,9 @@ function date_ical_sanitize_text($text = '') {
// single \n's lying around, because iCalcreator will properly "fold" long
// text fields for us. So, we need to remove all instances of \n which
// are neither immediately preceeded, nor followed, by another \n.
$text
=
preg_replace
(
"/(?<!
\n
)
\n
(?!
\n
)/"
,
" "
,
$text
);
// However, \n's which are followed immediately by a > character should
// remain, because of how drupal_html_to_text() converts <blockquote>.
$text
=
preg_replace
(
"/(?<!
\n
)
\n
(?![
\n
\>])/"
,
" "
,
$text
);
return
$text
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment