deba 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deba.rb +1 -1
- data/lib/deba/extractor.rb +3 -3
- 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: 0de0977eaf9b9d811109946932505ed943047146
|
4
|
+
data.tar.gz: b01a88e68afebbe353cc53820fbe60f76a3088ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 811acdf5cff0ae04067225211874eb653394043b029980ca93f040e39cb1ee883b4ad893e884f757046129eac857b8e7801f5a6949bb77298bc863a7139c992e
|
7
|
+
data.tar.gz: 0d59965ad25244a4c656fd9145f3c0cb556f0be7248472f09b6da00b248827fc829c325dc7074ccc1f535401423d80b7143bf80f68d17945e42ab00a4f0bdc74
|
data/lib/deba.rb
CHANGED
data/lib/deba/extractor.rb
CHANGED
@@ -29,7 +29,7 @@ class Deba::Extractor
|
|
29
29
|
if @just_appended_br
|
30
30
|
@just_appended_br = false
|
31
31
|
|
32
|
-
@text_run.break
|
32
|
+
@text_run.break(Deba::Paragraph)
|
33
33
|
|
34
34
|
return
|
35
35
|
else
|
@@ -63,7 +63,7 @@ class Deba::Extractor
|
|
63
63
|
if BLOCK_INITIATING_TAGS.include?(node_name)
|
64
64
|
@text_run.break(Deba::Paragraph)
|
65
65
|
node.children.each { |n| process(n) }
|
66
|
-
@text_run.break
|
66
|
+
@text_run.break(Deba::Paragraph)
|
67
67
|
|
68
68
|
return
|
69
69
|
end
|
@@ -71,7 +71,7 @@ class Deba::Extractor
|
|
71
71
|
if HEADING_TAGS.include?(node_name)
|
72
72
|
@text_run.break(Deba::Heading, node_name[1..-1].to_i)
|
73
73
|
node.children.each { |n| process(n) }
|
74
|
-
@text_run.break
|
74
|
+
@text_run.break(Deba::Paragraph)
|
75
75
|
|
76
76
|
return
|
77
77
|
end
|