Skip to content

Commit

Permalink
parseIdentify() skips empty lines and lines containing only whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chantal Ackermann committed Oct 17, 2012
1 parent cba60ba commit d55203e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imagemagick.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d55203e

Please sign in to comment.