booklab-sml 0.5.1 → 0.5.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
  SHA256:
3
- metadata.gz: 6f2be0239f156ad88b94d4ea2b004323ad2103fc5f40a464978888218368757b
4
- data.tar.gz: 1c8216e99a9c7726d73babb29c9131bfaad8b43edf6e273a2844458b8ba697cd
3
+ metadata.gz: b86d03cfc11d2caf668548847505864ecc75cf34794eb350d94993ce0247ed15
4
+ data.tar.gz: 3e0b1000676077654b03e72783d8bd8512860c314e22456c1bff7f3301210f84
5
5
  SHA512:
6
- metadata.gz: 3036a182310d3de012c563b8caec72944e268995fc264a77a8b1aee0e635ab296de19c0b703551f11ef427a6b76dfcd1560d3056947d61d83e1c92a3ae53e2ee
7
- data.tar.gz: c42ae23213f09e67f32e551be9ca9af2c48ddef2ea745848f0f2c0e600469317abaee72a40747ec1f06208f1c22042e927a45d8e1165ea0943ca0efe92e0717e
6
+ metadata.gz: 6405417fd04e637d08cb24aab6e63a78907f3b2ffce03aa148bd8ef39769883af0c5f26fb429247781fa14078bdcc0e17eb925f75586d64818daf5d3229b76b3
7
+ data.tar.gz: 60ea3f321079a9a56031b315aabe0de8fc026da84bb422d6646ee0d6ea79af12c11fffb0bd6c60afc23aa29e9009897da2fd3e039556c06e66fbd44e04c7cd22
@@ -40,7 +40,7 @@ module BookLab::SML::Rules
40
40
  if attrs[:indent].is_a?(Hash)
41
41
  # text-indent
42
42
  text_indent = attrs.dig(:indent, :firstline)
43
- style["text-indent"] = "#{4 * INDENT_PX}px" if text_indent
43
+ style["text-indent"] = "#{4 * INDENT_PX}px" if text_indent && text_indent > 0
44
44
 
45
45
  # padding-left
46
46
  indent_left = attrs.dig(:indent, :left)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BookLab
4
4
  module SML
5
- VERSION = "0.5.1"
5
+ VERSION = "0.5.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booklab-sml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-12 00:00:00.000000000 Z
11
+ date: 2019-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport