projects
/
Printer-Zebra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
287b151
)
fix fill 1 to right
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 6 Feb 2012 15:58:00 +0000
(16:58 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 6 Feb 2012 15:58:00 +0000
(16:58 +0100)
ZPL2pbm.pl
patch
|
blob
|
history
diff --git
a/ZPL2pbm.pl
b/ZPL2pbm.pl
index
796b721
..
692fb66
100755
(executable)
--- a/
ZPL2pbm.pl
+++ b/
ZPL2pbm.pl
@@
-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";