cbeta 2.3.3 → 2.3.4
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/cbeta/p5a_to_html.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6afd5cc81d8de1ddfe8c9fdc15480bdccf6b3f56
|
|
4
|
+
data.tar.gz: bcd3dbcff16c495079f9c0e86eb9987beb3b4cd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8ee4c89f49c338852d378383d354538a51c5b2366e01e230e766073c7cf88004a7e81386a42e7ad8384956d0e963cdf40ce6b4346e846242274c23d45fd5993
|
|
7
|
+
data.tar.gz: 364e4228910f8299f43c273804377874a6da28aa994f2cd131577ea24aa02045266cf03416068b14a32b5c850a71b4da9225e0e0ec52d7854b202e1abf0199ab
|
data/lib/cbeta/p5a_to_html.rb
CHANGED
|
@@ -701,7 +701,13 @@ class CBETA::P5aToHTML
|
|
|
701
701
|
# <milestone unit="juan"> 前面的 lb 屬於新的這一卷
|
|
702
702
|
s.gsub!(%r{((?:<pb [^>]+>\n?)?(?:<lb [^>]+>\n?)+)(<milestone [^>]*unit="juan"[^/>]*/>)}, '\2\1')
|
|
703
703
|
|
|
704
|
-
|
|
704
|
+
begin
|
|
705
|
+
doc = Nokogiri::XML(s) { |config| config.strict }
|
|
706
|
+
rescue Nokogiri::XML::SyntaxError => e
|
|
707
|
+
puts "XML parse error, file: #{fn}"
|
|
708
|
+
puts e
|
|
709
|
+
abort
|
|
710
|
+
end
|
|
705
711
|
doc.remove_namespaces!()
|
|
706
712
|
doc
|
|
707
713
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cbeta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ray Chou
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Ruby gem for use Chinese Buddhist Text resources made by CBETA (http://www.cbeta.org).
|
|
14
14
|
email: zhoubx@gmail.com
|