bookify 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bookify/node/paragraph.rb +1 -1
- 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: a71a4a0a73c02b270f94815ef98e89c018cba0f5
|
4
|
+
data.tar.gz: 3acd56ba011084eb9d4096febc874d8f9e864ad0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c988dd791388426165c03c47191dc4d04fa7ee0c59176ca630d8e1399d16128453284f85a2f3da49328940588e06837c5f74dfb889a7177efa363ad965bf3f
|
7
|
+
data.tar.gz: a37bb39a942d96ff683bf926c3860900a022ecd8494ea7d357d3ea2dd9c1123aa749dfd93e553419e6819fd76c432f1633701d492ae75f433f9884f370c63289
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Bookify::Node
|
2
2
|
class Paragraph < Base
|
3
3
|
def render
|
4
|
-
if node.children.all? { |c| c.name.to_sym == :img || c.
|
4
|
+
if node.children.all? { |c| c.name.to_sym == :img || c.text == "\n" }
|
5
5
|
node.children.select { |c| c.name.to_sym == :img }.each do |img|
|
6
6
|
SUBCLASSES[:img].render(img, pdf)
|
7
7
|
end
|