SynEdit icon indicating copy to clipboard operation
SynEdit copied to clipboard

Background color is not correctly exported to RTF

Open jonjbar opened this issue 2 years ago • 4 comments

Consider the attached project, using Delphi 11.3 and the latest commit of SynEdit, as of now:

  • It highlights XML where some items have a background color
  • The RTF exporter has the "UseBackgroundColor" set to True
  • The generated output.rtf has a messed up background, starting at the item with a background color

syn-rtf-bg.zip

jonjbar avatar Jul 21 '23 15:07 jonjbar

I am not using RTF and I have not ever touched this code. It would be nice if you find a fix and provide a PR.

pyscripter avatar Jul 21 '23 20:07 pyscripter

@m-matsubara Is this something you can help with?

pyscripter avatar Jun 08 '24 11:06 pyscripter

This seems to fix the problem. What do you think ? Changes-On-f1a128.patch

jonjbar avatar Aug 01 '24 14:08 jonjbar

@jonjbar If you have tested and it works I can commit this. I don't know much about the rtf format to judge. Please let me know.

I also noticed that you have suggested the original line in https://github.com/TurboPack/SynEdit/issues/63.

pyscripter avatar Aug 02 '24 04:08 pyscripter

Your patch has been applied.

pyscripter avatar Sep 17 '24 19:09 pyscripter