add_to_calendar_links 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/add_to_calendar_links.rb +1 -1
- data/lib/add_to_calendar_links/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d25bb2961c3f2488e412b0a32b5b35946c74fb110c15b000fdb0b5a92c23009c
|
4
|
+
data.tar.gz: 963495f17ace8c00ef7e4a2da8491198b30e9cc49a8bd73e0e57b55306a7e63e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06a3eb64acb07022c2d25949d02c922d7dfd7068d29337279f4bed2f3adedc27a974c64bdc012c042f0fa83fbaebdb8a64ee2d9c8b7364247f13d1b7b0b5b894
|
7
|
+
data.tar.gz: ebf8303a344a70967d263d80b1560cac9a9a4fc673f5df1a6dd9add6401f0616ef02063a8d082f5f7ccb85ec219f90ebb6ae051d2b5503682fd04368e909c2ca
|
@@ -112,6 +112,7 @@ module AddToCalendarLinks
|
|
112
112
|
end
|
113
113
|
params[:SUMMARY] = strip_html_tags(title) #ical doesnt support html so remove all markup. Optional for other formats
|
114
114
|
params[:URL] = url if url
|
115
|
+
description.gsub!(/\n/, "\\n")
|
115
116
|
params[:DESCRIPTION] = strip_html_tags(description).strip if description
|
116
117
|
if add_url_to_description && url
|
117
118
|
if params[:DESCRIPTION]
|
@@ -337,7 +338,6 @@ module AddToCalendarLinks
|
|
337
338
|
string.gsub!("&", "and")
|
338
339
|
string.gsub!(" ", " ")
|
339
340
|
string.gsub!(/<\/?[^>]*>/, "")
|
340
|
-
string.gsub!(/\n/, "\\n")
|
341
341
|
string.gsub!(/(\\n){2,}/, "\\n\\n")
|
342
342
|
string.strip
|
343
343
|
end
|