polyrex-headings 0.1.7 → 0.1.8

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: 870674b32648e86eccf94f5397f2af82bfdd3248
4
- data.tar.gz: fe4034fba1b8a3ca8a319c0c67cef4e7c319ac9c
3
+ metadata.gz: 30d320ec3a85a1f1cbf02386055aa990b9e43774
4
+ data.tar.gz: 4f64cfdba7853716e010617a46911d8ea9359de8
5
5
  SHA512:
6
- metadata.gz: 02f57705859b0249ce0047189c6e68d698e5f498c90ea52f6050874c5d988ea70975f2a420257fca900d0daa4b6bbb753d62319305c1f130bb278f20b126fdd1
7
- data.tar.gz: 9180df54c04fc3507ac07312a2d55cbd1febc7f5ab38975a2a51aa113318baaa1c15a2f5b7746f6fdd0b417d322abc35bbe80c350fec523911de356b789ef2c1
6
+ metadata.gz: ce10b4e0cf6d3d906d1435c4d38bdb81d48299e1e63fd15441018d48d7457a1a244e7ec1ef0f0aa2a6ca9133b64fff1d95c0089fa5a5be46dd6aa3f2ad22bd1d
7
+ data.tar.gz: 54d8512dc605e8a9ca469787b1a5ae0c4fd17da33977cec9001085114f950e99850ce2cd9d5c7ae80baf3a74eadc3ce62c59afb333e2ad7451284b9ba2b1fadc
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -47,11 +47,15 @@ class PolyrexHeadings
47
47
 
48
48
  lines = x.lines
49
49
  raw_heading = lines.shift.rstrip
50
+
51
+ body = lines.join.strip
52
+
53
+ if type == :rowx and body.length > 0
50
54
 
51
- if type == :rowx
52
55
  lines2 = ["\n"] +
53
- RowX.new(lines.join, level: 0).to_lines(delimiter: ' # ') << "\n"
56
+ RowX.new(body, level: 0).to_lines(delimiter: ' # ') << "\n"
54
57
  else
58
+
55
59
  lines2 = lines
56
60
  end
57
61
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-headings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  vMdoPmHODROmaBsBeXs0T155GSR9YIFca78CXJGUE108Vgao95n3mKksxyTbKm2Y
32
32
  nSBX7qKERZEaiQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-01-08 00:00:00.000000000 Z
34
+ date: 2017-01-10 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: polyrex
metadata.gz.sig CHANGED
Binary file