Skip to content

Changed the behavior of the field formatting dialog#4275

Merged
tobiasdiez merged 4 commits into
JabRef:masterfrom
abepolk:fix-for-issue-4148
Aug 21, 2018
Merged

Changed the behavior of the field formatting dialog#4275
tobiasdiez merged 4 commits into
JabRef:masterfrom
abepolk:fix-for-issue-4148

Conversation

@abepolk

@abepolk abepolk commented Aug 18, 2018

Copy link
Copy Markdown
Contributor

I made the loops for formatting all fields in the FieldFormatterCleanup class test for not being the KEY_FIELD. I originally had this in the cleanupSingleString method to prevent KEY_FIELD from being cleaned up (reformatted) entirely, but decided to let the user specifically format that field. When the user chooses to format all fields at once, however, the KEY_FIELD will be not be reformatted. This solves issue #4148

@Siedlerchr Siedlerchr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! Lgtm! It would be nice if you could add a test case, too
There is already a test class for the cleanup operation. You can simply add a new test case

@koppor koppor added the status: waiting-for-feedback The submitter or other users need to provide more information about the issue label Aug 19, 2018
@abepolk

abepolk commented Aug 21, 2018

Copy link
Copy Markdown
Contributor Author

I created a few unit tests. For the last one, I hard coded the LaTeX version of the "ç" character.

@tobiasdiez tobiasdiez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good! Thanks for your contribution.

@tobiasdiez tobiasdiez merged commit bd5a440 into JabRef:master Aug 21, 2018
@abepolk abepolk deleted the fix-for-issue-4148 branch August 21, 2018 15:33
@abepolk abepolk restored the fix-for-issue-4148 branch August 21, 2018 15:33
@abepolk

abepolk commented Aug 21, 2018

Copy link
Copy Markdown
Contributor Author

My pleasure!

Siedlerchr added a commit that referenced this pull request Aug 24, 2018
* upstream/master: (129 commits)
  Fix Export to clipbaord action (#4286)
  Add minimal height for entry editor (#4283)
  Fix exceptions when trying to change settings (#4284)
  Added a comment for the purpose of the class (#4282)
  Fix NPE when importing from CLI (#4281)
  Fix display of key patterns
  convert bibtexkeypatterndlg to javafx as well (#4277)
  Style preference sections using css
  Fix a few style issues
  Changed the behavior of the field formatting dialog (#4275)
  Fix checkbox display
  Remove small font size
  Style side pane in preferences
  Wrap preference tabs in scrollpane
  Fix NPE with bibdatabasecontext in preview style dialog
  update xmlunit and log4j jul and checkstyle
  Update mysql driver to 8.0.12
  Rework preference dialog main class
  Move preferences stuff to gui.preferences
  Implement drag and drop for maintable (#3765)
  ...

# Conflicts:
#	src/main/java/org/jabref/gui/shared/ConnectToSharedDatabaseDialog.java
Siedlerchr added a commit that referenced this pull request Aug 29, 2018
* upstream/master: (468 commits)
  Fix error prone warnings (#4290)
  Fix freeze on import into current library (#4299)
  Upgrade gradle to 4.10 update xmlunit and postgres
  update xmlunit-matchers from 2.6.0 -> 2.6.1
  update gradle build-scan from 1.15.2 -> 1.16
  checkstyle
  execute changes only if disk db present
  Fix Export to clipbaord action (#4286)
  fix npe in Merge entries dialog
  Add minimal height for entry editor (#4283)
  Fix exceptions when trying to change settings (#4284)
  Added a comment for the purpose of the class (#4282)
  Fix NPE when importing from CLI (#4281)
  Fix display of key patterns
  convert bibtexkeypatterndlg to javafx as well (#4277)
  Style preference sections using css
  Fix a few style issues
  Changed the behavior of the field formatting dialog (#4275)
  Fix checkbox display
  Remove small font size
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-feedback The submitter or other users need to provide more information about the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants