roda-component 0.1.61 → 0.1.62
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/component/version.rb +1 -1
- data/lib/roda/component.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cea7aba11b39b4e5bfdb3cf4abbaf76d3800cac
|
4
|
+
data.tar.gz: 4e45af26634994e3c0d57cdf2b3ed008439fe23b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15ac073392f3a82dec085a23f2c3966cd41fe7e133b7ec6afc2c0c3defa8abc9a472c77031a6ef474a84716de90c9957440e092fa93229fec2a29c41c756bde2
|
7
|
+
data.tar.gz: 70f9146a087752016f402d06a28d3298954b61ead890be446dd3b5a39026c600a8d5b1a107b2ed6cdd4da176c23757627df7d87d027a4c5203fbf300c81ee1ae
|
data/lib/roda/component.rb
CHANGED
@@ -30,7 +30,17 @@ unless RUBY_ENGINE == 'opal'
|
|
30
30
|
|
31
31
|
module Nokogiri
|
32
32
|
module XML
|
33
|
+
class NodeSet
|
34
|
+
alias_method :original_to_xhtml, :to_xhtml
|
35
|
+
def to_xhtml *args
|
36
|
+
original_to_xhtml(*args).gsub(" ", "\r")
|
37
|
+
end
|
38
|
+
end
|
33
39
|
class Node
|
40
|
+
alias_method :original_to_xhtml, :to_xhtml
|
41
|
+
def to_xhtml *args
|
42
|
+
original_to_xhtml(*args).gsub(" ", "\r")
|
43
|
+
end
|
34
44
|
|
35
45
|
private
|
36
46
|
|