0001863: <gramps> tags in notes, consistency. This should be in all notes or only in the ones that have markup

Markup has been disabled for notes. A new strategy is being worked on to allow styles for notes.

svn: r10230
This commit is contained in:
Brian Matherly
2008-03-08 21:20:42 +00:00
parent b04ef64231
commit fa0b508924
4 changed files with 237 additions and 191 deletions

View File

@@ -100,11 +100,6 @@ class NoteModel(BaseModel):
#data is the encoding in the database, make it a unicode object
#for universal work
note = " ".join(unicode(data[2]).split())
note = re.sub(r'(<.*?>)', '', note)
note = note.replace('&amp;', '&')
note = note.replace('&lt;', '<')
note = note.replace('&gt;', '>')
if len(note) > 80:
return note[:80]+"..."
else: