From d30caf610ac11948cbc7aaf3d60195ac2153c09f Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 11 Feb 2009 18:37:31 -0800 Subject: [PATCH] Now ignoring certain unneeded HTML tags that end up in your notes when you copy and paste text from an MS Word document: and . --- NEWS | 3 ++- controller/Html_cleaner.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 1c1fbaa..5696568 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ 1.6.4: February ??, 2009 - * + * Now ignoring certain unneeded HTML tags that end up in your notes when you + copy and paste text from an MS Word document. 1.6.3: February 11, 2009 * Introduced cache-busting code to make pages update more reliably after a diff --git a/controller/Html_cleaner.py b/controller/Html_cleaner.py index 4d0e2f7..1ee6095 100644 --- a/controller/Html_cleaner.py +++ b/controller/Html_cleaner.py @@ -134,6 +134,8 @@ class Html_cleaner(HTMLParser): 'title', 'head', 'body', + 'o', + 'm', ] # A list of tags that require no closing tag.