mdless 2.1.14 → 2.1.17

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: ffc20d85c54af629a9fe7b40cb2d070f4b1747cc83a11c8db247dd41552b3fc7
4
- data.tar.gz: 724e9dd1be0e95b076d4d33a166a06096f25295c60c91209c90a1d3e75010b0e
3
+ metadata.gz: 5ffb5f3154fd9b51b3022da00158fc25d1c291a1bc5eda0df39762997e304f07
4
+ data.tar.gz: beea04030e6ad6cc6b1ccfc54e457eb51d03de79b0937f8744b5c277212e9b54
5
5
  SHA512:
6
- metadata.gz: d82b111bdd9266f47d96c56fc5aa3475e29aa2a9076fb25fcaf035f86da4f72cdd91d7ee99b77fef10dcd945ef01cd98caaa7ff29e074d77a9f6fca28ebc81f4
7
- data.tar.gz: 8d645cf69412688a8b2e4d370442bbd230c4bb22ee40b73b8d3bdb8e6648bdf804c399ff59607018c5b8dec34a1a11a5c54e12fc1825380c496bbed430f52cd9
6
+ metadata.gz: 3c37206e0a1b989d3ce9b02e181c3b809713f8312806c777ca78cef6a608b8e2be9fc3616b5e9462d43f97889c2efa56b7812d523c32bb66f9e082c3edcec055
7
+ data.tar.gz: 3d4a127b244e190f01bb8634437fb6f96574a10887adb2fa73e8d1f886f3a757749a3b6a6e618d2af204e042abff9a86691456e26877ed2ae392775cd8540709
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ 2.1.17
2
+ : YAML metadata and negative line lengths
3
+
1
4
  2.1.14
2
5
  : Spaces on a line separating metadata won't break display
3
6
  : Preserve line breaks in metadata
@@ -760,11 +760,10 @@ module Redcarpet
760
760
  line = "#{color('metadata marker')}#{'%' * longest}"
761
761
  else
762
762
  line.sub!(/^(.*?:)[ \t]+(\S)/, '\1 \2')
763
- line = "#{color('metadata marker')}% #{color('metadata color')}#{line}\n"
763
+ line = "#{color('metadata marker')}% #{color('metadata color')}#{line}"
764
764
  end
765
-
766
- line += "\u00A0" * (longest - line.uncolor.strip.length) + xc
767
- line
765
+ line += "\u00A0" * (longest - line.uncolor.strip.length) if (longest - line.uncolor.strip.length).positive?
766
+ line + xc
768
767
  end.join("\n") + "#{xc}\n"
769
768
  end
770
769
  end
@@ -780,8 +779,8 @@ module Redcarpet
780
779
 
781
780
  lines.map do |line|
782
781
  line.sub!(/^(.*?:)[ \t]+(\S)/, '\1 \2')
783
- line = "#{color('metadata marker')}%#{color('metadata color')}#{line} "
784
- line += "\u00A0" * (longest - line.uncolor.strip.length)
782
+ line = "#{color('metadata marker')}%#{color('metadata color')}#{line}"
783
+ line += "\u00A0" * (longest - line.uncolor.strip.length) if (longest - line.uncolor.strip.length).positive?
785
784
  line + xc
786
785
  end.join("\n") + "#{"\u00A0" * longest}#{xc}\n"
787
786
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CLIMarkdown
4
- VERSION = '2.1.14'
4
+ VERSION = '2.1.17'
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.14
4
+ version: 2.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra