Support for natural find

svn: r1230
This commit is contained in:
Don Allingham
2002-12-24 22:36:46 +00:00
parent 6c1cceed82
commit 42ab304330
7 changed files with 82 additions and 40 deletions

View File

@@ -386,9 +386,12 @@ class HtmlDoc(TextDoc):
self.f.write('</p>\n')
def write_text(self,text):
text = string.replace(text,'&','&amp;'); # Must be first
text = string.replace(text,'<','&lt;');
text = string.replace(text,'>','&gt;');
text = string.replace(text,'\n','<br>')
if text != "":
self.empty = 0
text = string.replace(text,'\n','<br>')
self.f.write(text)
Plugins.register_text_doc(_("HTML"),HtmlDoc,1,0,1)