-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve user comments in bib file (#1471)
* Add failing test with preceding comment * Add failing parser test * Improve test naming * Reuse Globals.ENCODING_PREFIX in test * Check explicitly for encoding line and purge it * Add changelog entry * Write out user comments also for modified entries * Add test to check preservation of ENCODING_PREFIX inside an entry * Make BibEntryWriter more robust when dealing with faulty parsed serializations * Add test with user comment in file * Add test that changes and reformats an entry with a user comment * Add test with user comment before String * Preserve newlines also when used with bibtex strings * Add test for serialization of epilog * Fix string detection in test * In case of change, only remove trailing whitespaces between user comments and entry * Remove unused variable * Remove unused import * Reformat changelog entry * Move comment detection logic to BibtexString * Compute user comment in string only once * Move user comment computation to BibEntry * Add test for comment in the same line as BibEntry * Remove unnecessary epilog test * Remove redundant test bib file * Remove redundant asserts * Elevate registry actions * Delete stuff * Revert "Elevate registry actions" This reverts commit b4b288a. * Revert "Delete stuff" This reverts commit 67a4885. * Use optional in assert * Remove duplicate test * Remove unnecessary asserts * Remove unused import of Optional
- Loading branch information
Showing
12 changed files
with
438 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.