mdless 2.1.15 → 2.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c33009eb5144e58388cddecbb739f8ebe3889202b21838a59fa303cdcf33726
4
- data.tar.gz: 6adca397f29c120348707c5eb4af99a443b9f737e60262e1f4f779b33d7d68fb
3
+ metadata.gz: 5ffb5f3154fd9b51b3022da00158fc25d1c291a1bc5eda0df39762997e304f07
4
+ data.tar.gz: beea04030e6ad6cc6b1ccfc54e457eb51d03de79b0937f8744b5c277212e9b54
5
5
  SHA512:
6
- metadata.gz: 1cb103df693efacc6f20ccbfcb73ad73ed5eda5e75ba1143cb8753a7f0a5a3865226c46c6f6a61a1fdb1a8fd29278c4b34b531e2efa3f773cc2688fe13ce5601
7
- data.tar.gz: 4b4178f479b323c7079281ebbc1c531586ceebf04de77cb998c391415fcbb708bec357d1bce7312d42ee7cc67d59dc44c1f6dab2ac55a51c3dcd327cc132bc59
6
+ metadata.gz: 3c37206e0a1b989d3ce9b02e181c3b809713f8312806c777ca78cef6a608b8e2be9fc3616b5e9462d43f97889c2efa56b7812d523c32bb66f9e082c3edcec055
7
+ data.tar.gz: 3d4a127b244e190f01bb8634437fb6f96574a10887adb2fa73e8d1f886f3a757749a3b6a6e618d2af204e042abff9a86691456e26877ed2ae392775cd8540709
data/CHANGELOG.md CHANGED
@@ -1,4 +1,5 @@
1
- 2.1.15
1
+ 2.1.17
2
+ : YAML metadata and negative line lengths
2
3
 
3
4
  2.1.14
4
5
  : Spaces on a line separating metadata won't break display
@@ -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.15'
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.15
4
+ version: 2.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra