trac-wiki 0.3.24 → 0.3.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/trac-wiki/tree.rb +2 -1
- data/lib/trac-wiki/version.rb +1 -1
- data/test/parser_test.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9359bd5e7cf0789f5544e53c55a3fc52308ed3f1
|
4
|
+
data.tar.gz: e83046ec1c50dc16c1b4c743d64ffabe478ab9e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c14df8bb91c05140862e331a75279185d6ea9b2f4cdc7c0467ef726095273ae3c2e6629115c2d9d2e0ad866bd881c64b83fd562f5619230b5181127f009f5386
|
7
|
+
data.tar.gz: 2a9a2756c44c5726059408a1c52d2f1ba79a6dc58925eda4d085a9ac75a769a15934be841b59db87217c445c44088d47519620b92a6508461310bb865a4fc82a
|
data/Gemfile.lock
CHANGED
data/lib/trac-wiki/tree.rb
CHANGED
@@ -160,12 +160,13 @@ module TracWiki
|
|
160
160
|
:td => [:colspan, :rowspan, :style],
|
161
161
|
:th => [:colspan, :rowspan, :style],
|
162
162
|
:ol => [:type ],
|
163
|
-
:_all => [:class, :title, :id],
|
163
|
+
:_all => [:class, :title, :id, :style],
|
164
164
|
}
|
165
165
|
|
166
166
|
ATTRIBUTE_DATA_REX = /\Adata-[-a-z]+\Z/i
|
167
167
|
ATTRIBUTE_STYLE_REX = /\A( text-align:(center|right|left) |
|
168
168
|
margin: \d+(px|em)? |
|
169
|
+
(background|color): [-_#a-zA-Z0-9]+ |
|
169
170
|
;
|
170
171
|
)+\Z/x
|
171
172
|
def attrs_to_s(tag, attrs)
|
data/lib/trac-wiki/version.rb
CHANGED
data/test/parser_test.rb
CHANGED
@@ -1083,6 +1083,7 @@ eos
|
|
1083
1083
|
tc "<p><span>Span</span></p>\n", "<span>Span</span>\n", allow_html: true
|
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
|
+
tc "<div style=\"background:red\">Div</div>\n", "<div style=\"background:red\">Div</div>\n", allow_html: true
|
1086
1087
|
tc "<p><strong>ahoj</strong></p>\n<div class=\"ahoj\">Div</div>\n", "**ahoj<div class=\"ahoj\">Div</div>\n", allow_html: true
|
1087
1088
|
tc "<p><span>Span</span><span>Span</span></p>\n", "<span>Span</span><span>Span</span>\n", allow_html: true
|
1088
1089
|
tc "<p><em><b>boldoitali</b></em>cE</p>\n", "<p>''<b>boldoitali''c</b>E</p>", allow_html: true
|