fix fill 1 to right
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 6 Feb 2012 15:58:00 +0000 (16:58 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 6 Feb 2012 15:58:00 +0000 (16:58 +0100)
ZPL2pbm.pl

index 796b721..692fb66 100755 (executable)
@@ -47,7 +47,7 @@ while( $line ) {
                                my $l = ( $w * 2 ) - length($out) % ( $w * 2 );
                                $l = $w * 2 if $l == 0;
                                warn "# $p ONE-to-EOL $c [$l]\n";
-                               $out .= "1" x $l;
+                               $out .= "F" x $l;
                        } elsif ( $c eq ':' ) {
                                $out .= length($out) > $w ? substr($out,-$w*2) : "00" x $w;
                                warn "# $p repeat last line\n";