Permalink
Browse files

Merge pull request #62 from nuarhu/master

parseIdentify() : skip also lines containing only whitespace
  • Loading branch information...
2 parents cba60ba + d55203e commit b830fe9f13d539f495cc17f6e15a39856a4e32ec @rsms committed Oct 20, 2012
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) {

0 comments on commit b830fe9

Please sign in to comment.