blob: 9a4550895f82a4eaa4df2c0bb0b1098893afe7aa [file] [log] [blame]
class UserVersion < Version
def path
return self.wiki.path + '/' + self.rel_path
end
def html=(h)
logger.debug("Saving HTML to #{self.path}")
f = File.new(self.path, "w")
f.puts(h)
f.close
# works on the file, we are using tidy lib
#self.tidy if self.user_version? TODO remove
h = self.html.gsub(Page::SHIM_TAG_PATTERN, Page::SHIM_TAG)
f = File.new(self.path, "w")
f.puts(h)
f.close
end
end