diff --git a/sugar/chat/chat.py b/sugar/chat/chat.py index c25585f6..c6454827 100755 --- a/sugar/chat/chat.py +++ b/sugar/chat/chat.py @@ -322,6 +322,7 @@ class Chat(activity.Activity): buf.insert(aniter, "\n") def _get_first_richtext_chunk(self, msg): + """Scan the message for the first richtext-tagged chunk and return it.""" rt_last = -1 tag_rt_start = "" tag_rt_end = "" @@ -335,6 +336,7 @@ class Chat(activity.Activity): return None def _get_first_sketch_chunk(self, msg): + """Scan the message for the first SVG-tagged chunk and return it.""" svg_last = -1 tag_svg_start = "