Skip to content

Commit

Permalink
refactor: remove 'ERROR' in the INF_001 message (#1059)
Browse files Browse the repository at this point in the history
This addresses the concern raised by @ShinyaTakami in #1056.
  • Loading branch information
rdeltour committed Jul 18, 2019
1 parent 1f6a882 commit 11747ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/adobe/epubcheck/opf/XRefChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ private void checkReadingOrder(Queue<Reference> references, int lastSpinePositio
EPUBLocation.create(ref.source, ref.lineNumber, ref.columnNumber),
(ref.type == Type.NAV_TOC_LINK) ? "toc" : "page-list", ref.value, orderContext);
report.message(MessageId.INF_001,
EPUBLocation.create(ref.source, ref.lineNumber, ref.columnNumber), "ERROR", "https://github.com/w3c/publ-epub-revision/issues/1283");
EPUBLocation.create(ref.source, ref.lineNumber, ref.columnNumber), "https://github.com/w3c/publ-epub-revision/issues/1283");
lastSpinePosition = targetSpinePosition;
lastAnchorPosition = -1;
}
Expand All @@ -573,7 +573,7 @@ private void checkReadingOrder(Queue<Reference> references, int lastSpinePositio
EPUBLocation.create(ref.source, ref.lineNumber, ref.columnNumber),
(ref.type == Type.NAV_TOC_LINK) ? "toc" : "page-list", ref.value, orderContext);
report.message(MessageId.INF_001,
EPUBLocation.create(ref.source, ref.lineNumber, ref.columnNumber), "ERROR", "https://github.com/w3c/publ-epub-revision/issues/1283");
EPUBLocation.create(ref.source, ref.lineNumber, ref.columnNumber), "https://github.com/w3c/publ-epub-revision/issues/1283");
}
lastAnchorPosition = targetAnchorPosition;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is the default MessageBundle.properties file

#Info
INF_001=The previous rule is under review and may change to an '%1$s' in a future release. See the discussion at %2$s
INF_001=The previous rule is under review and its severity may change in a future release. See the discussion at %1$s

#Accessibility
ACC_001='img' or 'area' HTML element has no 'alt' attribute.
Expand Down

0 comments on commit 11747ab

Please sign in to comment.