jabref: Changes in entry preview are not saved

JabRef 5.1–2020-05-04–b5599c9 Linux 4.9.0-12-amd64 amd64 Java 14.0.1

Changes in the entry preview format are accounted for only after restarting.

Note 1: may seem similar to issue #5464, but the present issue is about the content of the preview. Note 2: issue is present with “Show preview as tab in entry editor” checked or unchecked.

Steps to reproduce the behavior:

  1. Create a file with the following entry and save it
@Article{MyKey,
  author    = {Author1, Surname1 and Author2 Surname2},
  journal   = {The Journal title},
  title     = {The title of the article},
  year      = {2020},
  number    = {12},
  pages     = {1-100},
  volume    = {15},
 }
  1. Go to Options -> Preferences -> Entry preview
  2. Select “Preview” in the column “Selected”
  3. Click on the Edit tab
  4. Change \begin{journal} <em>\format[HTMLChars]{\journal}, </em>\end{journal} into \begin{journal} <em>\format[HTMLChars]{\journal},HereIsMyChange </em>\end{journal}
  5. Go to the preview Tab. ==> The preview is updated accordingly.
  6. Click on save
  7. Edit the entry The preview shows: Capture du 2020-05-08 15-26-09 HereIsMyChange is not displayed ==> The preview is NOT updated.
  8. Close and reopen JabRef
  9. Edit the entry The preview shows: Capture du 2020-05-08 15-20-54 HereIsMyChange is displayed ==> The preview is updated NOW.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 30 (28 by maintainers)

Commits related to this issue

Most upvoted comments

Fixed, indeed. Thank you @Siedlerchr!

Thanks for your kindness. In fact, I find that your path is not exactly correct. We should not initialize another object of PreviewPanel which is JavaFX Vbox. I think we should modify some code to let the PreviewPanel content update after saving the preferences, which is a little difficult and deep tasks. The things I’m doing now is to figure out how the preview showing on the EntryEditor, and trying to give an elegant solution to update the preview. If you are still interested in it. Feel free to ask, we can work on this bug together.