bookify 1.3.1 → 1.3.2

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: 529c5cf036d69e88df9455d3c64aa26d0ad78440
4
- data.tar.gz: 926caa1e23c8dd89d38c92894c74652db47e0653
3
+ metadata.gz: e43a4bd9903c2e61207edafdbd780a62cbbe1852
4
+ data.tar.gz: 41386c9c902fe0655c76b162332402573bcf4ce2
5
5
  SHA512:
6
- metadata.gz: 734c15f4bbaac759cffa080ff5c034df144bf3a2875cd0ec0046918938d1dbc5599371ec10e1871f0ac5433fa56976c96819f35f3f4c1e1aac2d79e96703a86d
7
- data.tar.gz: 04a98f14e892fa1dc2afe7579e91fbf1fe7cce31d9b8fa053e311335ed673b618e3e3e97bdde897750f4bd78dd2d955d8fcabaf64da94a9f5239efb2215c513b
6
+ metadata.gz: dc1393531b3cda73004ee240ec3874e333988ae172bf5031d285c5a5967b73b8907d6c8c16a515b02c43043da8fa845b2254832837aeb0921a338b0f31874d92
7
+ data.tar.gz: 36d7ec1082fb090faeda97b756812b610404be09531f1259193ef39665363f80a24bf091957ee2f3c5602b474e6215096e9403446d1edd29670c62c6c8b2699b
@@ -1,8 +1,10 @@
1
1
  module Bookify::Node
2
2
  class Paragraph < Base
3
3
  def render
4
- if node.children.count == 1 && node.children.first.name.to_sym == :img
5
- SUBCLASSES[:img].render(node.children.first, pdf)
4
+ if node.children.all? { |c| c.name.to_sym == :img || c.inner_html == "" }
5
+ node.children.select { |c| c.name.to_sym == :img }.each do |img|
6
+ SUBCLASSES[:img].render(img, pdf)
7
+ end
6
8
  else
7
9
  html = clean_html(node.inner_html)
8
10
  font :primary
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joey Schoblaska
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-22 00:00:00.000000000 Z
11
+ date: 2017-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake