--- a/src/cm/utils/comment_positioning.py Wed Jan 13 18:15:21 2010 +0100
+++ b/src/cm/utils/comment_positioning.py Wed Jan 20 20:43:38 2010 +0100
@@ -30,8 +30,8 @@
opcodes = sm.get_opcodes()
to_remove_comments_ids = set()
- # limit to real comments (not replies)
- commentList = [c for c in commentList if not c.is_reply()]
+ # limit to real comments (not replies) and those that have scope
+ commentList = [c for c in commentList if not c.is_reply() and not c.is_scope_removed()]
for comment in commentList:
try:
@@ -140,7 +140,7 @@
return ret
-# comments are comments and replies : TODO $$$$$$$$$$$$ handle replies case
+# comments are comments and replies :
def insert_comment_markers(htmlcontent, comments, with_markers, with_colors) :
# parser = html5lib.HTMLParser(tree=treebuilders.getTreeBuilder("beautifulsoup"))