git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
README update
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
fanfix
/
output
/
BasicOutput.java
diff --git
a/src/be/nikiroo/fanfix/output/BasicOutput.java
b/src/be/nikiroo/fanfix/output/BasicOutput.java
index 9b53859a199c05aa7742b8cd259a310230f5167d..33a42c574bed176d90556bce1c447fba61ed26fe 100644
(file)
--- a/
src/be/nikiroo/fanfix/output/BasicOutput.java
+++ b/
src/be/nikiroo/fanfix/output/BasicOutput.java
@@
-92,7
+92,7
@@
public abstract class BasicOutput {
/**
* Call {@link OutputType#valueOf(String.toUpperCase())} but return NULL
/**
* Call {@link OutputType#valueOf(String.toUpperCase())} but return NULL
- * for NULL
instead of raising
exception.
+ * for NULL
and empty instead of raising an
exception.
*
* @param typeName
* the possible type name
*
* @param typeName
* the possible type name
@@
-100,7
+100,7
@@
public abstract class BasicOutput {
* @return NULL or the type
*/
public static OutputType valueOfNullOkUC(String typeName) {
* @return NULL or the type
*/
public static OutputType valueOfNullOkUC(String typeName) {
- if (typeName == null) {
+ if (typeName == null
|| typeName.isEmpty()
) {
return null;
}
return null;
}
@@
-441,7
+441,7
@@
public abstract class BasicOutput {
case LATEX:
return new LaTeX().setType(type, infoCover, infoCover);
case HTML:
case LATEX:
return new LaTeX().setType(type, infoCover, infoCover);
case HTML:
- return new Html().setType(type,
false, false
);
+ return new Html().setType(type,
infoCover, infoCover
);
}
}
}
}