src/cm/utils/comment_positioning.py
changeset 365 a478cb9786fd
parent 360 bfaab8740995
child 454 b7a092a52eae
equal deleted inserted replaced
364:41dd28557b5d 365:a478cb9786fd
   128     if with_markers:
   128     if with_markers:
   129         end_ids.reverse()
   129         end_ids.reverse()
   130         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]))
   130         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]))
   131      
   131      
   132     if with_colors and color != 0 :
   132     if with_colors and color != 0 :
       
   133       # For some reasons, abiwords can read background style attribute but not background-color
       
   134       from cm.cm_settings import USE_ABI
       
   135       if USE_ABI:
       
   136         ret = "<span style='background:%s;'>%s</span>"%(BCKCOLORS[color], ret)
       
   137       else:
   133         ret = "<span style='background-color:%s;'>%s</span>"%(BCKCOLORS[color], ret)
   138         ret = "<span style='background-color:%s;'>%s</span>"%(BCKCOLORS[color], ret)
   134         
   139         
   135     return ret
   140     return ret
   136 
   141 
   137 # comments are comments and replies :
   142 # comments are comments and replies :