Skip to content
Snippets Groups Projects
Commit d792c34e authored by David Sehnal's avatar David Sehnal
Browse files

Fix multiline test in CIF writer

parent d4c5ac82
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ function writeCifLoop(category: Category, instance: Category.Instance, source: C
}
function isMultiline(value: string) {
return !!value && value.indexOf('\n') >= 0;
return typeof value === 'string' && value.indexOf('\n') >= 0;
}
function writeLine(builder: StringBuilder, val: string) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment