-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious text included with copied previews #5263
Comments
The javascript code is from the highlighting for search results in the entry preview. Seems like the entry preview is copied as html. If you use the ctrl +c and ctrl +v it should work without issues. |
JabRef 5.0-dev Cannot confirm this issue for the current snap version of JabRef. Note, that the current snap version does not incorporate the preview in the entry editor as shown above. So the issue might actually persist and if that is the case it might have been introduced with the changes made to the preview and the entry editor. |
The snap build has been fixed, so that it now also runs with java 11 and the automatic build should also be working again for future updates. @AEgit You are now also able to run the newest version without modifying the default java env, as JabRef now ships with all required java dependencies. |
JabRef 5.0-dev I can confirm that this issue is fixed in the latest dev-version. |
Sorry, need to re-open this, as it is still not working properly for me in latest dev builds... |
Moreover: Using the "Copy Preview" functionality from the main table context menu does not work at all. |
JabRef 5.0-dev @matthiasgeiger I have tried to reproduce the issues that you report in #5263 (comment) and #5263 (comment) with the latest snap version (--edge channel), but I still do not manage to: everything works as expected for me. Can you provide a minimum example of a database, where you run into these issues? |
Meanwhile I have performed some analysis: the problem is caused by different 'paste'-targets: when the target is able to interpret HTML formatted text it is working fine - if you use a tool supporting only plain text not (e.g. Windows editor). |
@matthiasgeiger You are absolutely right. Now I can confirm the issues you report, if I use a simple text editor as paste target. I never thought, that the paste target would make a difference. Well spotted! |
The embedded Javascript comes from n the search highlight function. It's added when the citation style is loaded in the web view. So technically it's correct that it's also shown in paste, if the target does not interpret html. |
Well, yes and no. The remainder of the HTML code is stripped off before, i.e. the text formatting code is not shown when pasting into a plain text editor. |
I think one of the problems is that these methods
never set html and string together. Normally you want to use putString and putHtml together and then the target application chooses which representation it wants to use. |
This should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks! Please remember to make a backup of your library before trying-out this version. |
JabRef 5.0.0-dev--2019-10-07----facda00c1 I confirm the fix. Many thanks! |
JabRef 5.0.0-dev--2019-10-17----e81d58c51 Can confirm that this has been fixed in the current dev version. |
JabRef 5.0-dev--snapshot--2019-08-30--master--66b7fe3af
Linux 5.0.0-25-generic amd64
Java 11.0.4
That spurious "function highlight(text){...} " gets included with all copies.
The text was updated successfully, but these errors were encountered: