Skip to content

Commit 07088a8

Browse files
committed
changed a comment
1 parent c2a06e0 commit 07088a8

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

jablib/src/main/java/org/jabref/logic/exporter/AcademicPagesExporter.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,16 @@
2020
import org.jabref.model.metadata.SelfContainedSaveOrder;
2121

2222
import org.jspecify.annotations.NonNull;
23-
import org.slf4j.Logger;
24-
import org.slf4j.LoggerFactory;
2523

2624
/**
2725
* A custom exporter to write multiple bib entries as AcademicPages Markdown format.
2826
*/
2927
public class AcademicPagesExporter extends Exporter {
30-
private static final String BLANK_LINE_PATTERN = "\\r\\n|\\n";
31-
private static final String LAYOUT_PREFIX = "/resource/layout/";
32-
private static final String LAYOUT_EXTENSION = ".layout";
33-
private static final String FORMATTERS_EXTENSION = ".formatters";
34-
private static final String BEGIN_INFIX = ".begin";
35-
private static final String END_INFIX = ".end";
36-
37-
private static final Logger LOGGER = LoggerFactory.getLogger(AcademicPagesExporter.class);
3828

3929
private final String layoutFileFileName;
4030
private final String directory;
4131
private final LayoutFormatterPreferences layoutPreferences;
4232
private final SelfContainedSaveOrder saveOrder;
43-
private boolean customExport;
44-
private List<BibEntry> entries;
4533
private TemplateExporter academicPagesTemplate;
4634

4735
/**
@@ -107,7 +95,7 @@ public void export(@NonNull final BibDatabaseContext databaseContext,
10795

10896
private static @NonNull Path getPath(BibEntry entry, Path exportDirectory) {
10997
Replace replaceFormatter = new Replace();
110-
replaceFormatter.setArgument(" ,-"); // The replaceFormatter expects a "-" instead of " " hence the strange argument.
98+
replaceFormatter.setArgument(" ,-"); // expects an expression that has the character to remove and the replacement character separated by a comma.
11199
RemoveLatexCommandsFormatter commandsFormatter = new RemoveLatexCommandsFormatter();
112100
HTMLChars htmlFormatter = new HTMLChars();
113101
String title = entry.getTitle().get();

0 commit comments

Comments
 (0)