Permalink
Browse files

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

  • Loading branch information...
1 parent cba60ba commit d55203ed635517a5a6a37520f2476806a32a30e9 Chantal Ackermann committed Oct 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 imagemagick.js
View
@@ -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 d55203e

Please sign in to comment.