diff -r 41dd28557b5d -r a478cb9786fd src/cm/utils/comment_positioning.py --- 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 = "%s"%(BCKCOLORS[color], ret) + else: ret = "%s"%(BCKCOLORS[color], ret) return ret