Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

parseIdentify() skips empty lines and lines containing only whitespace.

  • Loading branch information...
commit d55203ed635517a5a6a37520f2476806a32a30e9 1 parent cba60ba
Chantal Ackermann authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 imagemagick.js
View
4 imagemagick.js
@@ -110,8 +110,8 @@ function parseIdentify(input) {
for (i in lines) {
currentLine = lines[i];
- if (currentLine.length > 0) {
- indent = currentLine.search(/\S/);
+ indent = currentLine.search(/\S/);
+ if (indent >= 0) {
comps = currentLine.split(': ');
if (indent > prevIndent) indents.push(indent);
while (indent < prevIndent && props.length) {
Please sign in to comment.
Something went wrong with that request. Please try again.