-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: String-valued property starts with quote but doesn't end with quote #285
Labels
bug
Something isn't working
Comments
The message from /**
* Make a new StringProperty object
* @param propertyList not used
* @param value String value of the new object
* @param fo not used
* @return the StringProperty object
*/
public Property make(PropertyList propertyList, String value,
FObj fo) {
// Work around the fact that most String properties are not
// specified as actual String literals (with "" or '') since
// the attribute values themselves are Strings!
// If the value starts with ' or ", make sure it also ends with
// this character
// Otherwise, just take the whole value as the String
int vlen = value.length() - 1;
if (vlen > 0) {
char q1 = value.charAt(0);
if (q1 == '"' || q1 == '\'') {
if (value.charAt(vlen) == q1) {
return new StringProperty(value.substring(1, vlen));
}
log.warn("String-valued property starts with quote"
+ " but doesn't end with quote: "
+ value);
// fall through and use the entire value, including first quote
}
String str = checkValueKeywords(value);
if (str != null) {
value = str;
}
}
return StringProperty.getInstance(value);
} |
Fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: #283
Warnings occur for asciimath text:
The text was updated successfully, but these errors were encountered: