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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e43a4bd9903c2e61207edafdbd780a62cbbe1852
4
- data.tar.gz: 41386c9c902fe0655c76b162332402573bcf4ce2
3
+ metadata.gz: a71a4a0a73c02b270f94815ef98e89c018cba0f5
4
+ data.tar.gz: 3acd56ba011084eb9d4096febc874d8f9e864ad0
5
5
  SHA512:
6
- metadata.gz: dc1393531b3cda73004ee240ec3874e333988ae172bf5031d285c5a5967b73b8907d6c8c16a515b02c43043da8fa845b2254832837aeb0921a338b0f31874d92
7
- data.tar.gz: 36d7ec1082fb090faeda97b756812b610404be09531f1259193ef39665363f80a24bf091957ee2f3c5602b474e6215096e9403446d1edd29670c62c6c8b2699b
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.inner_html == "" }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joey Schoblaska