isodoc 3.7.7 → 3.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/presentation_function/autonum.rb +2 -0
- data/lib/isodoc/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: cdda29c5e2ec54e77bb977a7f736b5cd215e3d54dfccf06213a0cb620bd111a7
|
|
4
|
+
data.tar.gz: 94ca91d475ff5554300c74d15fcb0a68a08166728103d52e688e931f030f67bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a1d38eab37a9aa533e94adc24e75414927376b65d9c0acca578c4009f688c4508abf5c4589f5352605087f45edb5c35af459f2b47868d5729caf4d029a1c754
|
|
7
|
+
data.tar.gz: 2c19a2c45d35869b011beaa785ea5938c338a6a06acceb66a1b6378bfad2edc9dcf47ca1cf259b601790f584d351cb5058c16fa3b506c991ba6c78efb3d7adcd
|
|
@@ -136,6 +136,8 @@ module IsoDoc
|
|
|
136
136
|
# detect whether string which may contain XML markup is empty
|
|
137
137
|
def empty_xml?(str)
|
|
138
138
|
str.blank? and return true
|
|
139
|
+
# plain text (no markup, no entity refs): emptiness is just whitespace
|
|
140
|
+
!str.include?("<") && !str.include?("&") and return str.strip.empty?
|
|
139
141
|
x = Nokogiri::XML::DocumentFragment.parse(str)
|
|
140
142
|
x.to_str.strip.empty?
|
|
141
143
|
end
|
data/lib/isodoc/version.rb
CHANGED