jekyll-img-converter 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-img-converter.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df8f039526701afab32eccdb36979eca8232c8fd
4
- data.tar.gz: 571559847df6865f7dbc47c077591195961ddfd0
3
+ metadata.gz: b6cf458e72ce862ef81f217d807c76aeebec1831
4
+ data.tar.gz: 6ce9ddcb0d416d5ed3321e08d26a9191d979e79b
5
5
  SHA512:
6
- metadata.gz: 7ef61dbfe6fdb342f812cb7fbf191d16124d66e13517004f5535ee5ff665ccc1c4421fa54fde42295fd400a18ebe89dbdc4d97906d008325aec607bce1302f44
7
- data.tar.gz: 3f8e01801f396938981ce73e20054d44e256e8349b7266b6529bc8b5034fb6c40afa2d9d282a56900f32d941bebd3384d2b3bad5176b5aa5026b780d0b0c612b
6
+ metadata.gz: 1061eb3581b9a3218bc8fb4fd531f74851b3a46802fe7433dcff857039ac5cb9384fba9fc135675b4574e0b38df3cf4098b4a47ac95087e76c5e0aa1eb5dc83a
7
+ data.tar.gz: 43e905e294a442920bce77346fe80b2f144f22a297ffe293019690ad497dd35adc0456af4ecce28aa669d80172dd9f58a3657dc19f6064de20b15a7c023f37db
@@ -12,10 +12,10 @@ module Jekyll
12
12
 
13
13
  imgTag = "<img src=\"#{link}\""
14
14
 
15
- if (matchData)
15
+ if (matchData)
16
16
  style = matchData[2]
17
- # puts matchData.to_s
18
- stripContent = content.gsub(matchData.to_s,'')
17
+ stripContent = content.gsub(matchData.to_s,'').rstrip
18
+
19
19
  imgTag += " alt=\"#{stripContent}\" style=\"#{style}\""
20
20
  else
21
21
  imgTag += " alt=\"#{content}\""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-img-converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - SungKwang Song