trac-wiki 0.3.16 → 0.3.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -330,7 +330,7 @@ module TracWiki
330
330
  # markup, for example to add html additional attributes or
331
331
  # to put divs around the imgs.
332
332
  def make_image(uri, attrs='')
333
- @tree.tag(:img, make_image_attrs(@base + uri, attrs))
333
+ @tree.tag(:img, make_image_attrs(uri, attrs))
334
334
  end
335
335
 
336
336
  def make_image_attrs(uri, attrs)
@@ -159,6 +159,7 @@ module TracWiki
159
159
  :img => [:src, :width, :height, :align, :valign, :style, :alt, :title],
160
160
  :td => [:colspan, :rowspan, :style],
161
161
  :th => [:colspan, :rowspan, :style],
162
+ :ol => [:type ],
162
163
  :_all => [:class, :title, :id],
163
164
  }
164
165
 
@@ -1,3 +1,3 @@
1
1
  module TracWiki
2
- VERSION = '0.3.16'
2
+ VERSION = '0.3.18'
3
3
  end
data/test/parser_test.rb CHANGED
@@ -30,7 +30,7 @@ class Bacon::Context
30
30
 
31
31
  end
32
32
 
33
- def template_handler(tname, env)
33
+ def template_handler(tname, env, argv)
34
34
  case tname
35
35
  when 'testmacpos2'
36
36
  "{{testmacpos}}"
@@ -582,6 +582,7 @@ describe TracWiki::Parser do
582
582
 
583
583
  # Image tags should be escape
584
584
  tc("<p><img src=\"image.jpg\"/></p>\n", "[[Image(image.jpg)]]")
585
+ tc("<p><img src=\"/ahoj/bhoj/bla/image.jpg\"/></p>\n", "[[Image(bla/image.jpg)]]", :base => "/ahoj/bhoj", :no_escape => true)
585
586
  tc("<p><img src=\"image.jpg\"/></p>\n", "[[Image(image.jpg)]]", :no_link=>true)
586
587
  tc("<p><img alt=\"a%22tag%22\" src=\"image.jpg\"/></p>\n", "[[Image(image.jpg,alt=a\"tag\")]]")
587
588
  tc("<p><img alt=\"a%22tag%22\" src=\"image.jpg\"/></p>\n", "[[Image(image.jpg,alt=a\"tag\")]]", :no_link=>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.16
4
+ version: 0.3.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-02 00:00:00.000000000 Z
12
+ date: 2014-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bacon