Skip to content

Commit

Permalink
Remove warning on attribute-less milestone
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
schierlm committed Aug 14, 2024
1 parent a553d4b commit a446b57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a446b57

Please sign in to comment.