From a446b57b22eec099a442e940d4b2a453182347db Mon Sep 17 00:00:00 2001 From: Michael Schierl Date: Thu, 15 Aug 2024 00:15:24 +0200 Subject: [PATCH] Remove warning on attribute-less milestone Custom milestones do not need to have attributes, therefore remove the warning and only warn in case there is really other content than attributes inside a milestone. --- .../src/main/java/biblemulticonverter/format/paratext/USFM.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biblemulticonverter/src/main/java/biblemulticonverter/format/paratext/USFM.java b/biblemulticonverter/src/main/java/biblemulticonverter/format/paratext/USFM.java index e2b6d20..2c48955 100644 --- a/biblemulticonverter/src/main/java/biblemulticonverter/format/paratext/USFM.java +++ b/biblemulticonverter/src/main/java/biblemulticonverter/format/paratext/USFM.java @@ -389,7 +389,7 @@ private ParatextBook doImportBook(File inputFile, Charset charset) throws Except if (textPart.startsWith("|")) { String attList = textPart.substring(1).trim(); parseAttributeList(attList, milestone.getAttributes()); - } else { + } else if (!textPart.isEmpty()){ System.out.println("WARNING: Skipping unsupported milestone content: "+textPart); } pos = data.indexOf('\\', startPos + 2);