bookify 2.7.0 → 2.8.0

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
  SHA256:
3
- metadata.gz: d51ebed7b740e8227ef917d1cb77b8b69697a3897679be78fc7e0d75224eab1a
4
- data.tar.gz: 0e39ed24007b1ed3385ee72505d6060c3fa484b8b6cc54af9629355e935d122a
3
+ metadata.gz: 23a677a6b7a9b17f6d796c2e592ecd6a257e64567453830317304937e222b478
4
+ data.tar.gz: 7ccbcdfab8abd3606dd5959af91bd931488513f301fe0bc1ecf5da3aa50d4b23
5
5
  SHA512:
6
- metadata.gz: 9db685fcb9815e6888ed42b92c5c4c3d3b36536d689c31d7fbe0cd2b54657f46ffbad78189943e1ac31655c4a793ec2320c674eb89951b07e4cb0523df19a433
7
- data.tar.gz: c69cc884d4af8bb320208932ddb6e68bdc848143cbcdfd19143a9e8dace6db447771734d2ceb715d3926ee52c91fdef0a83b57c48e5d243f3d0d62240922f00c
6
+ metadata.gz: fa7ca38229470047590911625ec13963746cc6cf01b49e3a8bd6fcfeb6ec5eb556d7897dac641579b7ea68b1be0a72cd1a92e9ebc221eb90145e30bf690e210b
7
+ data.tar.gz: 0a2792823adcb885befd77f217d3fcd560f7ce0a0b28c2d40758e989eab6336b8c0dafa2c14aa44f03c150bf3ce1a1c4057c8add247a39c89057e5049d727b66
@@ -4,7 +4,7 @@ module Bookify::Node
4
4
 
5
5
  FONTS = {
6
6
  h1: ["Book Antiqua", size: 18, style: :bold],
7
- h2: ["Book Antiqua", size: 12, style: :bold],
7
+ h2: ["Book Antiqua", size: 13, style: :bold],
8
8
  h3: ["Book Antiqua", size: 12, style: :bold],
9
9
  h4: ["Book Antiqua", size: 11, style: :bold],
10
10
  primary: ["Book Antiqua", size: 10]
@@ -3,7 +3,7 @@ require_relative "base"
3
3
  module Bookify::Node
4
4
  class H2 < Base
5
5
  def render
6
- move_down 5
6
+ move_down 15 unless pdf.y == page_top
7
7
  break_if_close_to_bottom
8
8
 
9
9
  html = decode_html(node.inner_html.strip)
@@ -3,7 +3,7 @@ require_relative "base"
3
3
  module Bookify::Node
4
4
  class H3 < Base
5
5
  def render
6
- move_down 5
6
+ move_down 5 unless pdf.y == page_top
7
7
  break_if_close_to_bottom
8
8
 
9
9
  font :h3 do
@@ -3,7 +3,7 @@ require_relative "base"
3
3
  module Bookify::Node
4
4
  class H4 < Base
5
5
  def render
6
- move_down 5
6
+ move_down 5 unless pdf.y == page_top
7
7
  break_if_close_to_bottom
8
8
 
9
9
  font :h4 do
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: 2.7.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joey Schoblaska