|
@@ -275,9 +275,18 @@ public class Manifest { |
|
|
if (line.charAt(0) == ' ') { |
|
|
if (line.charAt(0) == ' ') { |
|
|
// continuation line |
|
|
// continuation line |
|
|
if (attribute == null) { |
|
|
if (attribute == null) { |
|
|
throw new ManifestException("Can't start an attribute with a continuation line " + line); |
|
|
|
|
|
|
|
|
if (name != null) { |
|
|
|
|
|
// a continuation on the first line is a continuation of the name - concatenate |
|
|
|
|
|
// this line and the name |
|
|
|
|
|
name += line.substring(1); |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
throw new ManifestException("Can't start an attribute with a continuation line " + line); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
attribute.addContinuation(line); |
|
|
} |
|
|
} |
|
|
attribute.addContinuation(line); |
|
|
|
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
attribute = new Attribute(line); |
|
|
attribute = new Attribute(line); |
|
|