File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ p=. _This files lists all changes in the CodeRay library since the 0.9.8 release
7
7
h2. Changes in 1.0.7
8
8
9
9
* Fix issue with plugin files not being loaded. [GH-20, thanks to Will Read]
10
+ * Fix HTML scanner bug: Don't choke on boolean attributes. [GH-26, thanks to jugglinmike]
10
11
11
12
h2. Changes in 1.0.6
12
13
Original file line number Diff line number Diff line change @@ -149,12 +149,9 @@ def scan_tokens encoder, options
149
149
if match = scan ( /=/ ) #/
150
150
encoder . text_token match , :operator
151
151
state = :attribute_value
152
- elsif scan ( /#{ ATTR_NAME } /o ) || scan ( /#{ TAG_END } /o )
153
- state = :attribute
154
- next
155
152
else
156
- encoder . text_token getch , :error
157
153
state = :attribute
154
+ next
158
155
end
159
156
160
157
when :attribute_value
You can’t perform that action at this time.
0 commit comments