Ack! This is better

This commit is contained in:
Jacques Distler 2009-12-08 09:08:25 -06:00
parent faac8951a3
commit 023d84c4a4
2 changed files with 3 additions and 3 deletions

View file

@ -190,7 +190,7 @@ class WikiContent < String
def render!
pre_render!
@options[:engine].apply_to(self)
as_bytes
as_utf8
# unmask in one go. $~[1] is the chunk id
gsub!(MASK_RE[ACTIVE_CHUNKS]) do
chunk = @chunks_by_id[$~[1].to_i]
@ -202,7 +202,6 @@ class WikiContent < String
chunk.unmask_text
end
end
as_utf8
self.replace xhtml_sanitize(self)
end