trac-wiki 0.3.25 → 0.3.26

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
  SHA1:
3
- metadata.gz: 9359bd5e7cf0789f5544e53c55a3fc52308ed3f1
4
- data.tar.gz: e83046ec1c50dc16c1b4c743d64ffabe478ab9e6
3
+ metadata.gz: 3d4d589f079f4c74c372d021c05f3ec43d6d680d
4
+ data.tar.gz: bdb0127352cb1f9fec01a09aa3755a16b3481b52
5
5
  SHA512:
6
- metadata.gz: c14df8bb91c05140862e331a75279185d6ea9b2f4cdc7c0467ef726095273ae3c2e6629115c2d9d2e0ad866bd881c64b83fd562f5619230b5181127f009f5386
7
- data.tar.gz: 2a9a2756c44c5726059408a1c52d2f1ba79a6dc58925eda4d085a9ac75a769a15934be841b59db87217c445c44088d47519620b92a6508461310bb865a4fc82a
6
+ metadata.gz: 9cadad22f2ed952eb683e7ae07dc1700588e73fa5bbcbab9cfcc77d68e0f222934965ea8ff50eeb2efcd6547a119d924c9bb0d6e22dafb10c7cfffd51c748aae
7
+ data.tar.gz: d0b6dcfcf518cbbff6da64ec41d2ff607c125c73e4d2bc9dd8602675d5a2ccfab9f25152374b19d5e58b7fc89dc122368cb9f59a648ff4f04b39274308da783c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trac-wiki (0.3.24)
4
+ trac-wiki (0.3.25)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -218,7 +218,7 @@ module TracWiki
218
218
  # next
219
219
  i +=2
220
220
  end
221
- ret.sub /\n\s+\Z/, "\n"
221
+ ret.sub /\n\s+\Z/, ''
222
222
  },
223
223
  '!ifdef' => proc { |env| env.at(env.expand_arg(0), nil, false).nil? ? env.expand_arg(2) : env.expand_arg(1) },
224
224
  '!set' => proc { |env| env[env.expand_arg(0)] = env.expand_arg(1); '' },
@@ -167,7 +167,7 @@ module TracWiki
167
167
  ATTRIBUTE_STYLE_REX = /\A( text-align:(center|right|left) |
168
168
  margin: \d+(px|em)? |
169
169
  (background|color): [-_#a-zA-Z0-9]+ |
170
- ;
170
+ [\s;]
171
171
  )+\Z/x
172
172
  def attrs_to_s(tag, attrs)
173
173
  return '' if attrs.nil? || attrs.size == 0
@@ -1,3 +1,3 @@
1
1
  module TracWiki
2
- VERSION = '0.3.25'
2
+ VERSION = '0.3.26'
3
3
  end
data/test/parser_test.rb CHANGED
@@ -1084,6 +1084,7 @@ eos
1084
1084
  tc "<p><strong><span>Span</span></strong></p>\n", "**<span>Span</span>**\n", allow_html: true
1085
1085
  tc "<div class=\"ahoj\">Div</div>\n", "<div class=\"ahoj\">Div</div>\n", allow_html: true
1086
1086
  tc "<div style=\"background:red\">Div</div>\n", "<div style=\"background:red\">Div</div>\n", allow_html: true
1087
+ tc "<div style=\"background:red \">Div</div>\n", "<div style=\"background:red \">Div</div>\n", allow_html: true
1087
1088
  tc "<p><strong>ahoj</strong></p>\n<div class=\"ahoj\">Div</div>\n", "**ahoj<div class=\"ahoj\">Div</div>\n", allow_html: true
1088
1089
  tc "<p><span>Span</span><span>Span</span></p>\n", "<span>Span</span><span>Span</span>\n", allow_html: true
1089
1090
  tc "<p><em><b>boldoitali</b></em>cE</p>\n", "<p>''<b>boldoitali''c</b>E</p>", allow_html: true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trac-wiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.25
4
+ version: 0.3.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitas Stradal