Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-02-04 18:29:33 +0300
committerYann Leboulanger <asterix@lagaule.org>2008-02-04 18:29:33 +0300
commit8bb9df92d4b35e0a1b801e41b4446b905f6cd290 (patch)
tree9c2dbfeb658cf6e40728ba9b1b30dac17b081971 /src/conversation_textview.py
parent5951ea5d86d5c8a1aa73f280461c6fb9ab5a8273 (diff)
fix syntax
Diffstat (limited to 'src/conversation_textview.py')
-rw-r--r--src/conversation_textview.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/conversation_textview.py b/src/conversation_textview.py
index afdd1f08b..07998af66 100644
--- a/src/conversation_textview.py
+++ b/src/conversation_textview.py
@@ -352,9 +352,8 @@ class ConversationTextview:
adjustment.set_value(0)
return False # when called in an idle_add, just do it once
- def bring_scroll_to_end(self, diff_y = 0,\
- use_smooth =\
- gajim.config.get('use_smooth_scrolling')):
+ def bring_scroll_to_end(self, diff_y = 0,
+ use_smooth=gajim.config.get('use_smooth_scrolling')):
''' scrolls to the end of textview if end is not visible '''
buffer = self.tv.get_buffer()
end_iter = buffer.get_end_iter()
@@ -904,12 +903,12 @@ class ConversationTextview:
use_other_tags = False
elif special_text.startswith('*'): # it's a bold text
tags.append('bold')
- if special_text[1] == '/' and special_text[-2] == '/' and
+ if special_text[1] == '/' and special_text[-2] == '/' and\
len(special_text) > 4: # it's also italic
tags.append('italic')
if not show_ascii_formatting_chars:
special_text = special_text[2:-2] # remove */ /*
- elif special_text[1] == '_' and special_text[-2] == '_' and
+ elif special_text[1] == '_' and special_text[-2] == '_' and \
len(special_text) > 4: # it's also underlined
tags.append('underline')
if not show_ascii_formatting_chars:
@@ -919,12 +918,12 @@ class ConversationTextview:
special_text = special_text[1:-1] # remove * *
elif special_text.startswith('/'): # it's an italic text
tags.append('italic')
- if special_text[1] == '*' and special_text[-2] == '*' and
+ if special_text[1] == '*' and special_text[-2] == '*' and \
len(special_text) > 4: # it's also bold
tags.append('bold')
if not show_ascii_formatting_chars:
special_text = special_text[2:-2] # remove /* */
- elif special_text[1] == '_' and special_text[-2] == '_' and
+ elif special_text[1] == '_' and special_text[-2] == '_' and \
len(special_text) > 4: # it's also underlined
tags.append('underline')
if not show_ascii_formatting_chars:
@@ -934,12 +933,12 @@ class ConversationTextview:
special_text = special_text[1:-1] # remove / /
elif special_text.startswith('_'): # it's an underlined text
tags.append('underline')
- if special_text[1] == '*' and special_text[-2] == '*' and
+ if special_text[1] == '*' and special_text[-2] == '*' and \
len(special_text) > 4: # it's also bold
tags.append('bold')
if not show_ascii_formatting_chars:
special_text = special_text[2:-2] # remove _* *_
- elif special_text[1] == '/' and special_text[-2] == '/' and
+ elif special_text[1] == '/' and special_text[-2] == '/' and \
len(special_text) > 4: # it's also italic
tags.append('italic')
if not show_ascii_formatting_chars: