Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

StyledText does not store the HTML format in the clipboard #85

Closed

Description

@mihnita

Use a nightly build of Eclipse.

This is important, as HTML support as a Clipboard format for StyledText was added only 16 days ago:
eclipse-platform/eclipse.platform.swt#395

I've used

Eclipse SDK
Version: 2022-12 (4.26)
Build id: I20221002-1800

Create a small app that outputs colors in the console.
For example a Java app doing this:

System.out.println("Hello \033[91mRED\033[m \033[101mRED\033[m world!");

Go to the console, select the text, and copy it to the clipboard using the standard Copy command
(Ctrl+C on Windows / Linux, or right-click and select Copy from the context menu)

Use an application that has the option to select what format to paste.
For example MS Word.
The HTML format shows in the list:

image

But pasting reveals the escape characters.

If you copy using the ANSI option "Copy Without ANSI Escapes" (Ctrl + Insert), then the escapes don't show, but the HTML option is removed:

image

===

The bug: the HTML format should also be available in the Clipboard without escape sequences.

Activity

  1. mihnita commented on Oct 5, 2022

    @mihnita
    ContributorAuthor

    The UI also has to (slightly) change, because right now it says "Put RTF in Clipboard. ..."
    (see the last checkbox)

    image

  2. laeubi commented on Oct 5, 2022

    @laeubi
    Contributor

    @vogella would you mind to nominate @mihnita as a committer? I think bringing ANSI support into Eclipse and the constant support for it should be sufficient?

  3. merks commented on Oct 5, 2022

    @merks
    Contributor

    @laeubi Any committer can nominate someone. Just be sure to include links to what's been contributed in the nomination. I.e., a good reason/justification.

    Go to this page:

    https://projects.eclipse.org/projects/eclipse.platform

    Make sure you are logged in and then you can use Nominate a Committer:

    image

  4. iloveeclipse commented on Oct 5, 2022

    @iloveeclipse
    Member

    In the past I've received mails about nominations. This time I didn't. Bug?

  5. laeubi commented on Oct 5, 2022

    @laeubi
    Contributor

    It was send to platform-dev list, maybe it takes some time?

  6. laeubi commented on Oct 13, 2022

    @laeubi
    Contributor

    @mihnita your election was successful and approved by PMC, you should get committer rights on the platform repos now 👍

  7. mihnita commented on Oct 13, 2022

    @mihnita
    ContributorAuthor

    Thank you! :-)

    For the last few days I've been reading what I was able to find about what that means
    (not the right to commit, that's obvious, but the responsibilities :-)

    But for now I will probably do more of the same: PR to be reviewed approved by others, more experienced.
    And I will look over your shoulder to learn (your == plural, as in all the other commiters)

  8. akurtakov commented on Oct 13, 2022

    @akurtakov
    Member

    Thank you! :-)

    For the last few days I've been reading what I was able to find about what that means (not the right to commit, that's obvious, but the responsibilities :-)

    But for now I will probably do more of the same: PR to be reviewed approved by others, more experienced. And I will look over your shoulder to learn (your == plural, as in all the other commiters)

    Biggest responsibility for committers is to review others PRs. We are far beyond the time when there was someone knowledgable of certain area and being active but we can't let people contribute PRs that stay unattended. I know this happens but it's not because of anything else but "just so many hours in the day". Thus review and test PRs according to your best knowledge and request contributors to enhance them where you see fit.

  9. mihnita commented on Oct 14, 2022

    @mihnita
    ContributorAuthor

    Subscribed to the 3 lists.
    I'll browse through all of them, and read some, to start getting a "feel" for how things work.

    Although "how things work" and "how things are supposed to work" are different, so I might learn the wrong lessons :-)

    Please don't hesitate to "nudge" me in the right direction if you notice I go astray:-)
    I'll not "take it wrong", as I'm going to be a novice here.

    Thanks,
    Mihai

  10. mihnita commented on Oct 14, 2022

    @mihnita
    ContributorAuthor

    I've visited a couple of issues she's PRs (not mine).

    And I don't seem to have any "special powers" (close issues, change tags, review or merge PRs). I didn't intend to change anything, but I've checked if the buttons / options are there.
    And they are not.

    So maybe someone needs to "tell GitHub" about me change in access?

    Thanks,
    Mihai

  11. akurtakov commented on Oct 14, 2022

    @akurtakov
    Member

    You should have received a mail about "paperwork", did you?

  12. laeubi commented on Oct 14, 2022

    @laeubi
    Contributor

    It usually takes some time, but you should (after completing the paperwork) receive an email that you are invited to join the "eclipse-platform-organization". After acception the invitation you should be allowed to:

    • Use the merge buttons on PRs
    • rebase PRs
    • assign reviewers
    • reopen/close any issue
  13. mihnita commented on Oct 14, 2022

    @mihnita
    ContributorAuthor

    Yes, I got it.
    Filed in everything, and for a new email

    "Thank you for completing the employer information component of the process.
    You will receive further notification to complete the legal components."

    And a link that I can use to check the status.
    Which right now says "Awaiting legal review"

    So it's all good.

    If we only me, thinking that
    "your election was successful and approved by PMC, you should get committer rights on the platform repos now" means now-now :-)

    No rush. A note on the status page says it can take up to 5 days, so nothing to worry.

    Thanks,
    Mihai

  14. akurtakov commented on Oct 14, 2022

    @akurtakov
    Member

    OK, please check again when the status page says everything is fine and if you are not able to merge get in contact with me .

  15. changed the title [-]ANSI Support does not store the HTML format in the clipboard[/-] [+]StyledText does not store the HTML format in the clipboard[/+] on Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions