Package: catdoc Version: 1:0.95-4.1 Severity: minor Tags: patch The patch is in the attachment.
Summary: Remove space at end of lines. Change a two-fonts macro to an one-font macro for a single argument. Change a HYPHEN-MINUS (code 0x55, 2D) to a dash (minus) if it matches " -[:alpha:]" or \(aq-[:alpha:] (for options). Split long lines (> 80). Use \(en for a dash where appropriate. Details: Input file is xls2csv.1 mandoc: xls2csv.1:6:25: STYLE: whitespace at end of input line mandoc: xls2csv.1:7:10: STYLE: whitespace at end of input line mandoc: xls2csv.1:8:18: STYLE: whitespace at end of input line mandoc: xls2csv.1:11:10: STYLE: whitespace at end of input line mandoc: xls2csv.1:12:19: STYLE: whitespace at end of input line mandoc: xls2csv.1:13:10: STYLE: whitespace at end of input line mandoc: xls2csv.1:14:19: STYLE: whitespace at end of input line mandoc: xls2csv.1:15:9: STYLE: whitespace at end of input line mandoc: xls2csv.1:16:18: STYLE: whitespace at end of input line mandoc: xls2csv.1:17:10: STYLE: whitespace at end of input line mandoc: xls2csv.1:18:15: STYLE: whitespace at end of input line mandoc: xls2csv.1:23:12: STYLE: whitespace at end of input line mandoc: xls2csv.1:59:26: STYLE: whitespace at end of input line mandoc: xls2csv.1:67:73: STYLE: whitespace at end of input line mandoc: xls2csv.1:72:69: STYLE: whitespace at end of input line mandoc: xls2csv.1:73:64: STYLE: whitespace at end of input line mandoc: xls2csv.1:75:50: STYLE: whitespace at end of input line mandoc: xls2csv.1:77:26: STYLE: whitespace at end of input line mandoc: xls2csv.1:78:13: STYLE: whitespace at end of input line mandoc: xls2csv.1:79:16: STYLE: whitespace at end of input line mandoc: xls2csv.1:87:72: STYLE: whitespace at end of input line ####### Test nr. 2: Enable and fix warnings from 'test-groff'. Input file is ./xls2csv.1 <xls2csv.1>:15 (macro RB): only 1 argument, but more are expected <xls2csv.1>:29 (macro BR): only 1 argument, but more are expected <xls2csv.1>:32 (macro BR): only 1 argument, but more are expected Output is from: test-groff -b -e -mandoc -T utf8 -rF0 -t -w w -z [ "test-groff" is a developmental version of "groff" ] ##### Test nr. 25: Change a HYPHEN-MINUS (code 0x55, 2D) to a minus (\-), if in front of a name for an option. 6:.BR "xls2csv " [ -xlV ] 7:.RB [ -f 9:.RB [ -b 11:.RB [ -s 13:.RB [ -d 17:.RB [ -c 29:.BR -x 32:.BR -l 35:.BI -c char 38:.BI -b string 45:.BI -g number 49:.BI -q number 57:.BI -d charset` 65:.BI -s charset 70:.BI -f format 83:.B -V ##### Test nr. 41: Wrong distance between sentences or protect the indicator. 1) Separate the sentences and subordinate clauses; each begins on a new line. See man-pages(7) [package "manpages"] and "info groff". Or 2) Adjust space between sentences (two spaces), 3) or protect the indicator by adding "\&" after it. The "indicator" is an "end-of-sentence character" (.!?). 25:values to stdout. Numbers are printed without delimiters, strings are 26:enclosed in the double quotes. Double-quotes inside string are doubled. 36:cell separator char. By default - comma. 39:sheet break string. This string (by default - formfeed) would be output 40:at the end of each workbook page. This string is printed after page 42:at the end of string. Include newline at the ent of sheet separator if 46:number of decimal digits in the numbers. By default maximal double 50:set quote mode. In quote mode 0 cell contents is never quoted. 58:- specifies destination charset name. Charset file has format described in 61:manual page. By default, current locale 66:- specifies source charset. Typically, Excel files have CODE PAGE 73:the spreadsheet is used. On POSIX system any format, allowed by 75:can be used as value of this option. Under MS-DOS ##### Test nr. 42: Split lines longer than 80 characters into two or more lines. Appropriate break points are the end of a sentence, in front of a subordinate clause, and after punctuation marks. xls2csv.1: line 3 length 94 xls2csv \- reads MS-Excel file and puts its content as comma-separated data on standard output ##### Test nr. 44: Use \(en for a dash (en-dash) between space characters, not a minus (\-) or a hyphen (-), except in the NAME section. 36:cell separator char. By default - comma. 39:sheet break string. This string (by default - formfeed) would be output ##### -- System Information: Debian Release: buster/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.110-3 (SMP w/2 CPU cores) Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), LANGUAGE=is_IS.iso88591 (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages catdoc depends on: ii libc6 2.27-5 catdoc recommends no packages. Versions of packages catdoc suggests: pn tk | wish <none> -- no debconf information -- Bjarni I. Gislason
--- xls2csv.1 2017-11-05 22:48:29.000000000 +0000 +++ xls2csv.1.new 2018-07-22 18:22:47.000000000 +0000 @@ -1,92 +1,106 @@ .TH xls2csv 1 "Version @catdoc_version@" "MS-Word reader" .SH NAME -xls2csv \- reads MS-Excel file and puts its content as comma-separated data on standard output +xls2csv \- reads MS-Excel file and puts its content as comma-separated \ +data on standard output .SH SYNOPSIS -.BR "xls2csv " [ -xlV ] -.RB [ -f -.IR " format " ] -.RB [ -b -.IR " string " ] -.RB [ -s -.IR " charset " ] -.RB [ -d -.IR " charset " ] -.RB [-q -.IR " number " ] -.RB [ -c -.IR " char" ] +.BR "xls2csv " [ \-xlV ] +.RB [ \-f +.IR format " ]" +.RB [ \-b +.IR string " ]" +.RB [ \-s +.IR charset " ]" +.RB [ \-d +.IR charset " ]" +.RB [ \-q +.IR number " ]" +.RB [ \-c +.IR char " ]" .I files .SH DESCRIPTION -.B xls2csv +.B xls2csv reads MS-Excel spreadsheet and dumps its content as comma-separated -values to stdout. Numbers are printed without delimiters, strings are -enclosed in the double quotes. Double-quotes inside string are doubled. +values to stdout. +Numbers are printed without delimiters, strings are +enclosed in the double quotes. +Double-quotes inside string are doubled. .SH "OPTIONS" .TP 8 -.BR -x +.B \-x print unknown Unicode chars as \exNNNN, rather than as question marks .TP 8 -.BR -l +.B \-l list known charsets and exit successfully .TP 8 -.BI -c char -cell separator char. By default - comma. +.BI \-c char +cell separator char. +By default \(en comma. .TP 8 -.BI -b string -sheet break string. This string (by default - formfeed) would be output -at the end of each workbook page. This string is printed after page +.BI \-b string +sheet break string. +This string (by default \(en formfeed) would be output +at the end of each workbook page. +This string is printed after page starting at start of line, but no linefeed would be automatically added -at the end of string. Include newline at the ent of sheet separator if +at the end of string. +Include newline at the ent of sheet separator if you want it to appear on separate line by itself .TP 9 -.BI -g number -number of decimal digits in the numbers. By default maximal double +.BI \-g number +number of decimal digits in the numbers. +By default maximal double precision (system-dependent macro DBL_DIG) is used. .TP 8 -.BI -q number -set quote mode. In quote mode 0 cell contents is never quoted. +.BI \-q number +set quote mode. +In quote mode 0 cell contents is never quoted. In quote mode 1 only strings which contain spaces, double quotes or commas are quoted. In quote mode 2 (default) all cells with type string are quoted. In quote mode 3 all cells are quoted. .TP 8 -.BI -d charset` -- specifies destination charset name. Charset file has format described in -CHARACTER SETS section of +.BI \-d charset +\(en specifies destination charset name. +Charset file has format described in +CHARACTER SETS section of .BR catdoc (1) -manual page. By default, current locale +manual page. +By default, current locale charset would be used if langinfo support was enabled at the compile time. .TP 8 -.BI -s charset -- specifies source charset. Typically, Excel files have CODE PAGE -record, which denotes input charset, but for some reason you may wish to +.BI \-s charset +\(en specifies source charset. +Typically, Excel files have CODE PAGE +record, which denotes input charset, but for some reason you may wish to override it. .TP 8 -.BI -f format -- specifies date/time format to use for output of all Excel date and -time values. If this option is not specified, format, specified in -the spreadsheet is used. On POSIX system any format, allowed by +.BI \-f format +\(en specifies date/time format to use for output of all Excel date and +time values. If this option is not specified, format, specified in +the spreadsheet, is used. +On POSIX system any format, allowed by .BR strftime (3) -can be used as value of this option. Under MS-DOS +can be used as value of this option. +Under MS-DOS .B xls2csv -implements limited set of -.B strftime -formats, namely +implements limited set of +.B strftime +formats, namely .BR m ", " d ", " y ", " Y ", " b ", " l ", " p ", " H ", " M ", " S . .TP 8 -.B -V +.B \-V outputs version number .SH FILES -${HOME}/.catdocrc, catdoc charset files and substitution map files (see +${HOME}/.catdocrc, catdoc charset files, and substitution map files (see .BR catdoc (1) -manual page for details, +manual page for details) .SH "SEE ALSO"