Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

maxUriLengthh -> maxUriLength (fat-fingered that one whoops)

  • Loading branch information...
commit 6c7d9a7f8fcfde931dfeba3a55f700d3fb886526 1 parent 5139afb
@tivac tivac authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 src/net/nczonline/web/cssembed/CSSURLEmbedder.java
View
18 src/net/nczonline/web/cssembed/CSSURLEmbedder.java
@@ -64,7 +64,7 @@
private int options = 1;
private String mhtmlRoot = "";
private String outputFilename = "";
- private int maxUriLengthh = DEFAULT_MAX_URI_LENGTH; //IE8 only allows dataURIs up to 32KB
+ private int maxUriLength = DEFAULT_MAX_URI_LENGTH; //IE8 only allows dataURIs up to 32KB
private int maxImageSize;
//--------------------------------------------------------------------------
@@ -87,15 +87,15 @@ public CSSURLEmbedder(Reader in, int options, boolean verbose) throws IOExceptio
this(in, options, verbose, 0);
}
- public CSSURLEmbedder(Reader in, int options, boolean verbose, int maxUriLengthh) throws IOException {
- this(in, options, verbose, maxUriLengthh, 0);
+ public CSSURLEmbedder(Reader in, int options, boolean verbose, int maxUriLength) throws IOException {
+ this(in, options, verbose, maxUriLength, 0);
}
- public CSSURLEmbedder(Reader in, int options, boolean verbose, int maxUriLengthh, int maxImageSize) throws IOException {
+ public CSSURLEmbedder(Reader in, int options, boolean verbose, int maxUriLength, int maxImageSize) throws IOException {
this.code = readCode(in);
this.verbose = verbose;
this.options = options;
- this.maxUriLengthh = maxUriLengthh;
+ this.maxUriLength = maxUriLength;
this.maxImageSize = maxImageSize;
}
@@ -235,14 +235,14 @@ public void embedImages(Writer out, String root) throws IOException {
if (uriString.startsWith("data:")){
- if (maxUriLengthh > 0 && uriString.length() > maxUriLengthh) {
+ if (maxUriLength > 0 && uriString.length() > maxUriLength) {
if (verbose){
- System.err.println("[WARNING] File " + newUrl + " creates a data URI larger than " + maxUriLengthh + " bytes. Skipping.");
+ System.err.println("[WARNING] File " + newUrl + " creates a data URI larger than " + maxUriLength + " bytes. Skipping.");
}
builder.append(url);
- } else if (maxUriLengthh > 0 && uriString.length() > maxUriLengthh){
+ } else if (maxUriLength > 0 && uriString.length() > maxUriLength){
if (verbose) {
- System.err.println("[INFO] File " + newUrl + " creates a data URI longer than " + maxUriLengthh + " characters. Skipping.");
+ System.err.println("[INFO] File " + newUrl + " creates a data URI longer than " + maxUriLength + " characters. Skipping.");
}
builder.append(url);
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.