Ignore NEWLINE in format expression literals
@see https://www.filebot.net/forums/viewtopic.php?f=6&t=4338&p=24461#p24461
This commit is contained in:
parent
4d83f04812
commit
53376c3de6
|
@ -3,6 +3,7 @@ package net.filebot.format;
|
|||
import static net.filebot.similarity.Normalization.*;
|
||||
import static net.filebot.util.ExceptionUtilities.*;
|
||||
import static net.filebot.util.FileUtilities.*;
|
||||
import static net.filebot.util.RegularExpressions.*;
|
||||
|
||||
import java.security.AccessController;
|
||||
import java.text.FieldPosition;
|
||||
|
@ -65,7 +66,7 @@ public class ExpressionFormat extends Format {
|
|||
if (c == open) {
|
||||
if (level == 0) {
|
||||
if (token.length() > 0) {
|
||||
compilation.add(token.toString());
|
||||
compilation.add(NEWLINE.matcher(token).replaceAll(""));
|
||||
token.setLength(0);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue