add %n (newline) to -f option

merge-requests/1/head
m. allan noah 2008-05-28 00:48:21 +00:00
rodzic 70c861608f
commit 0acce974b2
3 zmienionych plików z 11 dodań i 4 usunięć

Wyświetl plik

@ -1,5 +1,8 @@
2008-05-27 m. allan noah <kitno455 a t gmail d o t com>
* frontend/scanimage.c: add %n for newline to -f option
2008-05-26 Jonathan Bravo Lopez <jkdsoft@gmail.com>
* po/sane-backends.es.po: added spanish translation about status strings.
* po/sane-backends.es.po: added spanish translation about status strings
* po/Makefile.in: added backend/sane_strstatus.c to SRC_FILES section.
2008-05-26 Rene Rebe <rene@exactcode.de>

Wyświetl plik

@ -137,9 +137,9 @@ option works similar to
but requires a format string.
.B scanimage
replaces the placeholders
.B %d %v %m %t %i
with the device name, vendor name, model name, scanner type and an index
number respectively. The command
.B %d %v %m %t %i %n
with the device name, vendor name, model name, scanner type, an index
number and newline respectively. The command
.PP
.RS
.B scanimage -f

Wyświetl plik

@ -1776,6 +1776,10 @@ main (int argc, char **argv)
int_arg = i;
ftype = 'i';
break;
case 'n':
text_arg = "\n";
ftype = *percent = 's';
break;
case '%':
ftype = 0;
break;