Polish contribution

See gh-23923
This commit is contained in:
Sam Brannen
2019-11-06 10:51:55 +01:00
parent 9da15ee23a
commit 1a13700f8b
4 changed files with 25 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -190,7 +190,6 @@ public class CssLinkResourceTransformer extends ResourceTransformerSupport {
}
else {
position = extractUnquotedLink(position, content, result);
}
}
}
@@ -203,7 +202,7 @@ public class CssLinkResourceTransformer extends ResourceTransformerSupport {
}
/**
* Invoked after a keyword match, after whitespaces removed, and when
* Invoked after a keyword match, after whitespace has been removed, and when
* the next char is neither a single nor double quote.
*/
protected abstract int extractUnquotedLink(int position, String content,
@@ -222,7 +221,7 @@ public class CssLinkResourceTransformer extends ResourceTransformerSupport {
@Override
protected int extractUnquotedLink(int position, String content, Set<ContentChunkInfo> result) {
if (content.startsWith("url(", position)) {
// Ignore, UrlFunctionContentParser will take care
// Ignore: UrlFunctionLinkParser will handle it.
}
else if (logger.isTraceEnabled()) {
logger.trace("Unexpected syntax for @import link at index " + position);