...which throws off the line numbers.

looks like this is to blame:

      else if (preg_match("/^\+[^\+]+/", $line)) {
        $patch .= ltrim($line, '+') ."\n";
        $in_patch = 1;
      }

the regex looks like it wants to skip the lines beginning with +++ but it also skips a single + on its own

CommentFileSizeAuthor
coder-patch-empty-line.patch630 bytesjohn morahan

Comments

stella’s picture

Status: Needs review » Fixed

Fixed in both D6 branches and D7 too, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.