use of org.jabref.logic.formatter.bibtexfields.LatexCleanupFormatter in project jabref by JabRef.
the class CleanupWorkerTest method cleanupLatexMergesTwoLatexMathEnvironments.
@Test
public void cleanupLatexMergesTwoLatexMathEnvironments() {
CleanupPreset preset = new CleanupPreset(new FieldFormatterCleanups(true, Collections.singletonList(new FieldFormatterCleanup("title", new LatexCleanupFormatter()))));
BibEntry entry = new BibEntry();
entry.setField("title", "$\\alpha$$\\beta$");
worker.cleanup(preset, entry);
Assert.assertEquals(Optional.of("$\\alpha\\beta$"), entry.getField("title"));
}
Aggregations