File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ h2. Changes in 1.1
33
33
* The @Debug@ scanner maps unknown token kinds to @:unknown@ (to avoid creating Symbols based on possibly unsafe input)
34
34
* The @Raydebug@ scanner highlights unknown token kinds as @:plain@
35
35
* @Plugin@ does not warn about fallback when default is defined
36
+ * Fixed @HTML@ encoder when output is a StringIO (eg. when using @-HTML@)
36
37
* @HTML@ encoder will not warn about unclosed token groups at the end of the stream
37
38
* @Debug@ encoder refactored; use @DebugLint@ if you want strict checking now
38
39
* @Debug@ encoder will not warn about errors in the token stream
Original file line number Diff line number Diff line change @@ -197,13 +197,15 @@ def finish options
197
197
@last_opened = nil
198
198
end
199
199
200
- @out . extend Output
201
- @out . css = @css
202
- if options [ :line_numbers ]
203
- Numbering . number! @out , options [ :line_numbers ] , options
200
+ if @out . respond_to? :to_str
201
+ @out . extend Output
202
+ @out . css = @css
203
+ if options [ :line_numbers ]
204
+ Numbering . number! @out , options [ :line_numbers ] , options
205
+ end
206
+ @out . wrap! options [ :wrap ]
207
+ @out . apply_title! options [ :title ]
204
208
end
205
- @out . wrap! options [ :wrap ]
206
- @out . apply_title! options [ :title ]
207
209
208
210
if defined? ( @real_out ) && @real_out
209
211
@real_out << @out
You can’t perform that action at this time.
0 commit comments