From ee6eef6db3aa57ed78020b3ca63b3b5b02ce7ecb Mon Sep 17 00:00:00 2001 From: Maximilian Wagenbach Date: Tue, 26 May 2020 01:38:57 +0200 Subject: [PATCH 1/3] I verified that this works. Both modes cut the paper 95% of the way through. --- src/escpos/escpos.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/escpos/escpos.py b/src/escpos/escpos.py index 05a763d..de4ee09 100644 --- a/src/escpos/escpos.py +++ b/src/escpos/escpos.py @@ -661,8 +661,6 @@ class Escpos(object): be attempted. Note however, that not all models can do a partial cut. See the documentation of your printer for details. - .. todo:: Check this function on TM-T88II. - :param mode: set to 'PART' for a partial cut. default: 'FULL' :param feed: print and feed before cutting. default: true :raises ValueError: if mode not in ('FULL', 'PART') From 323db98318c38e02c4e82a6a309b7adda3f9a129 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Tue, 26 May 2020 20:43:24 +0200 Subject: [PATCH 2/3] make gen authors more robust --- .mailmap | 1 + doc/generate_authors.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index 4540049..5adfefb 100644 --- a/.mailmap +++ b/.mailmap @@ -13,3 +13,4 @@ csoft2k Sergio Pulgarin reck31 Alex Debiasio +Maximilian Wagenbach diff --git a/doc/generate_authors.sh b/doc/generate_authors.sh index aefcb6e..1fcda40 100755 --- a/doc/generate_authors.sh +++ b/doc/generate_authors.sh @@ -12,7 +12,7 @@ if [ "$#" -eq 1 ] echo "\nNew authorsfile:\n" cat $TEMPAUTHORSFILE echo "\nUsing diff on files...\n" - diff -q --from-file $AUTHORSFILE $TEMPAUTHORSFILE + diff --suppress-common-lines -b --from-file $AUTHORSFILE $TEMPAUTHORSFILE else echo "$GENLIST">$AUTHORSFILE fi From e3cf088d69c6a4861a9fb5537ce099a12b3b33ca Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Tue, 26 May 2020 21:29:16 +0200 Subject: [PATCH 3/3] improve output of authors script --- .mailmap | 2 +- doc/generate_authors.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.mailmap b/.mailmap index 5adfefb..825019f 100644 --- a/.mailmap +++ b/.mailmap @@ -13,4 +13,4 @@ csoft2k Sergio Pulgarin reck31 Alex Debiasio -Maximilian Wagenbach +Maximilian Wagenbach diff --git a/doc/generate_authors.sh b/doc/generate_authors.sh index 1fcda40..bf35156 100755 --- a/doc/generate_authors.sh +++ b/doc/generate_authors.sh @@ -1,6 +1,7 @@ #!/bin/sh GENLIST=$(git shortlog -s -n | cut -f2 | sort -f) +GENLIST_W_MAIL=$(git shortlog -s -e -n | cut -f2 | sort -f) AUTHORSFILE="$(dirname $0)/../AUTHORS" TEMPAUTHORSFILE="/tmp/python-escpos-authorsfile" @@ -12,7 +13,9 @@ if [ "$#" -eq 1 ] echo "\nNew authorsfile:\n" cat $TEMPAUTHORSFILE echo "\nUsing diff on files...\n" - diff --suppress-common-lines -b --from-file $AUTHORSFILE $TEMPAUTHORSFILE + diff --suppress-common-lines -b --from-file $AUTHORSFILE $TEMPAUTHORSFILE + echo "Authors with mail addresses:\n" + echo "$GENLIST_W_MAIL" else echo "$GENLIST">$AUTHORSFILE fi