mdless 2.1.17 → 2.1.20

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: 5ffb5f3154fd9b51b3022da00158fc25d1c291a1bc5eda0df39762997e304f07
4
- data.tar.gz: beea04030e6ad6cc6b1ccfc54e457eb51d03de79b0937f8744b5c277212e9b54
3
+ metadata.gz: f57c3bdcee76bfb347f88b0565c5ecd09c7879cc0ed3159d34c38a8ea1abc6cc
4
+ data.tar.gz: f7777ae04cad47bdf0b3a9e80737744264698d734ad6bfc4981cab8aaabfb7dd
5
5
  SHA512:
6
- metadata.gz: 3c37206e0a1b989d3ce9b02e181c3b809713f8312806c777ca78cef6a608b8e2be9fc3616b5e9462d43f97889c2efa56b7812d523c32bb66f9e082c3edcec055
7
- data.tar.gz: 3d4a127b244e190f01bb8634437fb6f96574a10887adb2fa73e8d1f886f3a757749a3b6a6e618d2af204e042abff9a86691456e26877ed2ae392775cd8540709
6
+ metadata.gz: 2595a961ba59068748afc2f29790ae1f10d264dad6bc020d3dea33909f74e46924ea335a7fcfbbf02b465428168311a0c98613906a474a6e8c1ab1bdd8c4b1db
7
+ data.tar.gz: e8657acc663939813cf5302cbde4f32d8b4d94b2cbdd1988d1a3a809aa1d7ac1912d305221b392ea3ff18ca94464758d1b8cd6b757ea78a09548a26abdd10ded
data/lib/mdless/string.rb CHANGED
@@ -77,8 +77,8 @@ class ::String
77
77
  line = "#{color('metadata color')}#{line}<br>"
78
78
  end
79
79
 
80
- line += "\u00A0" * (longest - line.uncolor.strip.length) + xc
81
- line
80
+ line += "\u00A0" * (longest - line.uncolor.strip.length) if (longest - line.uncolor.strip.length).positive?
81
+ line + xc
82
82
  end.join("\n") + "#{xc}\n"
83
83
  end
84
84
  end
@@ -93,8 +93,8 @@ class ::String
93
93
  longest = longest < @cols ? longest + 1 : @cols
94
94
  lines.map do |line|
95
95
  line.sub!(/^(.*?:)[ \t]+(\S)/, '\1 \2')
96
- line = "#{color('metadata color')}#{line}<br>"
97
- line += "\u00A0" * (longest - line.uncolor.strip.length)
96
+ line = "#{color('metadata color')}#{line}"
97
+ line += "\u00A0" * (longest - line.uncolor.strip.length) if (longest - line.uncolor.strip.length).positive?
98
98
  line + xc
99
99
  end.join("\n") + "#{"\u00A0" * longest}#{xc}\n"
100
100
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CLIMarkdown
4
- VERSION = '2.1.17'
4
+ VERSION = '2.1.20'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdless
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.17
4
+ version: 2.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra