effective_datatables 4.25.2 → 4.25.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f105e25867f12dad26ccd30fbc137277c18cab56e7bce84d99ab4904653c9166
4
- data.tar.gz: 2c2eb1af1f4b7d883500edd937be7a85b7c4597afba2f4d8a9c269615cdcbe18
3
+ metadata.gz: 6795fc15046e40e435529576eb9f7f4c3473e51c12f0a62778854d567b8abee6
4
+ data.tar.gz: a1db0bc8b76f4f47561458dc7df631ed065cb5f5734840db664b493cb2012cbe
5
5
  SHA512:
6
- metadata.gz: e3abde79798be064fa677b294fbbd8fbe8e553c477980448ffbf165a1bc5700ca7e981bf093eeecf78615aa9ca3972a689871d875ddce49450458248942b1b69
7
- data.tar.gz: fd979688dfd24545173dd77f16a8fdaf60d1efac6110d277e10e2821ff6962311add4ce8c2ec7bb897235f6b8a1836be8c6b33ca62eab6a3d1e97ee74aa33324
6
+ metadata.gz: 16816ddfd74f48e8d6deb1ac9a2d05d665fc8c063e8865b7c7237df8cc5a1b70921472927a26d09f00e94fb65764ab3280373c857ffa7c9ebe8e6d33d9b18d54
7
+ data.tar.gz: 4b65d03eddc9bc7bf6040b069995b211747cabcfdf0ca5bff05c9337172cfd59926a7f7bcbbb3b92fb3bb27bab85775e0838a78799ff265020eb84397fe0449c
@@ -76,11 +76,21 @@ module Effective
76
76
  end
77
77
  )
78
78
 
79
- if csv && (opts[:format] || opts[:partial])
80
- formatted = view.strip_tags(formatted)
81
-
82
- formatted.gsub!("\n\n", ' ') unless formatted.frozen?
83
- formatted.gsub!("\n", '') unless formatted.frozen?
79
+ if csv && (opts[:format] || opts[:partial]) && !formatted.frozen?
80
+ formatted.gsub!("<br>\n", ' ')
81
+ formatted.gsub!("<br> ", ' ')
82
+ formatted.gsub!("<br>", ' ')
83
+ formatted.gsub!("<br/>", ' ')
84
+ formatted.gsub!("<br />", ' ')
85
+ formatted.gsub!("\n\n", ' ')
86
+ formatted.gsub!("\n", ' ') unless formatted.include?('<')
87
+
88
+ if formatted.include?('<')
89
+ formatted.gsub!("\n", '')
90
+ formatted.gsub!("<div class='col-resource_item'>", ' ')
91
+
92
+ formatted = view.strip_tags(formatted).strip
93
+ end
84
94
  end
85
95
 
86
96
  row[index] = formatted
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.25.2'.freeze
2
+ VERSION = '4.25.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.25.2
4
+ version: 4.25.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-08 00:00:00.000000000 Z
11
+ date: 2024-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails