Check for unfinshed tag: suspect that I need to escape names, or deal with unicode. render needs to be rewritten
svn: r11701
This commit is contained in:
parent
11da237db7
commit
142108337c
@ -631,19 +631,27 @@ class GuiGramplet:
|
|||||||
i += 1
|
i += 1
|
||||||
offset = self.len_text(self.get_text())
|
offset = self.len_text(self.get_text())
|
||||||
self.append_text(retval)
|
self.append_text(retval)
|
||||||
for (a,attributes,b) in markup_pos["B"]:
|
for items in markup_pos["B"]:
|
||||||
|
if len(items) == 3:
|
||||||
|
(a,attributes,b) = items
|
||||||
start = self.buffer.get_iter_at_offset(a + offset)
|
start = self.buffer.get_iter_at_offset(a + offset)
|
||||||
stop = self.buffer.get_iter_at_offset(b + offset)
|
stop = self.buffer.get_iter_at_offset(b + offset)
|
||||||
self.buffer.apply_tag_by_name("bold", start, stop)
|
self.buffer.apply_tag_by_name("bold", start, stop)
|
||||||
for (a,attributes,b) in markup_pos["I"]:
|
for items in markup_pos["I"]:
|
||||||
|
if len(items) == 3:
|
||||||
|
(a,attributes,b) = items
|
||||||
start = self.buffer.get_iter_at_offset(a + offset)
|
start = self.buffer.get_iter_at_offset(a + offset)
|
||||||
stop = self.buffer.get_iter_at_offset(b + offset)
|
stop = self.buffer.get_iter_at_offset(b + offset)
|
||||||
self.buffer.apply_tag_by_name("italic", start, stop)
|
self.buffer.apply_tag_by_name("italic", start, stop)
|
||||||
for (a,attributes,b) in markup_pos["U"]:
|
for items in markup_pos["U"]:
|
||||||
|
if len(items) == 3:
|
||||||
|
(a,attributes,b) = items
|
||||||
start = self.buffer.get_iter_at_offset(a + offset)
|
start = self.buffer.get_iter_at_offset(a + offset)
|
||||||
stop = self.buffer.get_iter_at_offset(b + offset)
|
stop = self.buffer.get_iter_at_offset(b + offset)
|
||||||
self.buffer.apply_tag_by_name("underline", start, stop)
|
self.buffer.apply_tag_by_name("underline", start, stop)
|
||||||
for (a,attributes,b) in markup_pos["A"]:
|
for items in markup_pos["A"]:
|
||||||
|
if len(items) == 3:
|
||||||
|
(a,attributes,b) = items
|
||||||
start = self.buffer.get_iter_at_offset(a + offset)
|
start = self.buffer.get_iter_at_offset(a + offset)
|
||||||
stop = self.buffer.get_iter_at_offset(b + offset)
|
stop = self.buffer.get_iter_at_offset(b + offset)
|
||||||
if "href" in attributes:
|
if "href" in attributes:
|
||||||
|
Loading…
Reference in New Issue
Block a user