--- a/src/cm/utils/comment_positioning.py Thu Jul 21 14:12:25 2011 +0200
+++ b/src/cm/utils/comment_positioning.py Thu Jul 21 15:02:50 2011 +0200
@@ -130,6 +130,11 @@
ret = "%s%s%s"%(''.join(["[%s>"%start_id for start_id in start_ids]), ret, ''.join(["<%s]"%end_id for end_id in end_ids]))
if with_colors and color != 0 :
+ # For some reasons, abiwords can read background style attribute but not background-color
+ from cm.cm_settings import USE_ABI
+ if USE_ABI:
+ ret = "<span style='background:%s;'>%s</span>"%(BCKCOLORS[color], ret)
+ else:
ret = "<span style='background-color:%s;'>%s</span>"%(BCKCOLORS[color], ret)
return ret