瀏覽代碼

lpst.pl - added code to trim some more characters

master
gashapwn 3 年之前
父節點
當前提交
aae5e28dfd
共有 1 個檔案被更改,包括 6 行新增3 行删除
  1. +6
    -3
      lpst.pl

+ 6
- 3
lpst.pl 查看文件

@@ -257,9 +257,9 @@ sub disp_row($){
$r0 = shift;

$row = disp_0($r0);
# Trim the start of the first line
$row =~ s/$TRAIL_1/ /;
if($r0 % 2 == 1){
# Trim the start of the first line
$row =~ s/$TRAIL_1/ /;
# Trim the end of the first line
$row =~ s/\n/$TRAIL_3\n/
}else{
@@ -277,8 +277,11 @@ sub disp_board(){
$b .= disp_row($i);
}
$b =~ s/$TRAIL_1$TRAIL_3\n/\n/m;

for my $i (1..11-1){
substr($b, 2+6*$i, 2) = " ";
}
printf("%s", $b);
}

sub cell_index($){


Loading…
取消
儲存