Skip to content

Commit

Permalink
Merge pull request #4 from SPI-2023/fix-issue-429
Browse files Browse the repository at this point in the history
fix import style errors
  • Loading branch information
desperadomzc authored May 22, 2023
2 parents be3e284 + 9b81455 commit 9b72ced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/org/jabref/cli/JabRefCLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import org.jabref.logic.exporter.ExporterFactory;
import org.jabref.logic.importer.ImportFormatReader;
import org.jabref.logic.l10n.Localization;
import org.jabref.model.util.DummyFileUpdateMonitor;
import org.jabref.model.strings.StringUtil;
import org.jabref.model.util.DummyFileUpdateMonitor;
import org.jabref.preferences.PreferencesService;

import org.apache.commons.cli.CommandLine;
Expand Down Expand Up @@ -305,11 +305,7 @@ public static void printUsage(PreferencesService preferencesService) {
Globals.entryTypesManager,
Globals.journalAbbreviationRepository);
String outFormatsIntro = Localization.lang("Available export formats");

// issue 429: change the output format into "display name : id" pairs and start from new line
String outFormats = getExportFormatList(exporterFactory.getExporters());

// String outFormatsList = String.format("%s: %s%n", outFormatsIntro, outFormats);
String outFormatsList = String.format("%s:%n%s%n", outFormatsIntro, outFormats);

String footer = '\n' + importFormatsList + outFormatsList + "\nPlease report issues at https://github.com/JabRef/jabref/issues.";
Expand Down
1 change: 1 addition & 0 deletions src/test/java/org/jabref/cli/JabRefCLITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.List;

import org.jabref.preferences.JabRefPreferences;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down

0 comments on commit 9b72ced

Please sign in to comment.