Permalink
Browse files

Variable rename, code block shuffle

  • Loading branch information...
1 parent 8f69098 commit 62288c75947a5f8a811f64b1a7ec523e99ea9d2f @tivac tivac committed Apr 25, 2011
Showing with 10 additions and 20 deletions.
  1. +10 −20 src/net/nczonline/web/cssembed/CSSEmbed.java
@@ -115,6 +115,16 @@ public static void main(String[] args) {
uriLength = 0;
}
}
+
+ //maximum size allowed for image files
+ int imageSize = 0;
+ Integer imageSizeOption = (Integer) parser.getOptionValue(imageSizeOpt);
+ if (imageSizeOption != null){
+ imageSize = imageSizeOption.intValue();
+ if (imageSize < 0){
+ imageSize = 0;
+ }
+ }
//determine if MHTML mode is on
boolean mhtml = parser.getOptionValue(mhtmlOpt) != null;
@@ -126,26 +136,6 @@ public static void main(String[] args) {
throw new Exception("Must use --mhtmlroot when using --mhtml.");
}
- //maximum length allowed for generated dataURI
- int maxurilength = 0;
- Integer uriOption = (Integer) parser.getOptionValue(uriLengthOpt);
- if (uriOption != null){
- maxurilength = uriOption.intValue();
- if (maxurilength < 0){
- maxurilength = 0;
- }
- }
-
- //maximum size allowed for image files
- int maximagesize = 0;
- Integer imageSizeOption = (Integer) parser.getOptionValue(imageSizeOpt);
- if (imageSizeOption != null){
- maximagesize = imageSizeOption.intValue();
- if (maximagesize < 0){
- maximagesize = 0;
- }
- }
-
//are missing files ok?
boolean skipMissingFiles = parser.getOptionValue(skipMissingOpt) != null;
if(skipMissingFiles) {

0 comments on commit 62288c7

Please sign in to comment.