Package: txt2man Version: 1.5.1-1 Severity: important Tags: patch txt2man's own manpage currently looks like this (excerpted) == \fB-h The option -h displays help. ==
This is because the Debian patch to backslash-escape dashes is only applying to the first dash on a line, and does not extend the shell-option matching code to recognise the escaped-dash's backslash as belonging to the dash. The below patch fixes this: (It will fuzz with the patch I just sent to #221268. They both work together though, and the parts that overlap are the same change to different lines) --- /usr/bin/txt2man 2006-10-27 17:09:18.000000000 +1000 +++ txt2man 2007-03-28 00:57:27.000000000 +1000 @@ -187,7 +187,7 @@ sub(/\.\.\./, "\\.\\.\\.") # remove spaces in empty lines sub(/^ +$/,"") - sub(/-/,"\\-") # backslash-escape hyphens + gsub(/-/,"\\-") # backslash-escape hyphens } /^[[:upper:][:space:]]+$/ { # Section header @@ -307,7 +307,7 @@ for (i in subwords) gsub(i, subwords[i]) # shell options - gsub(/\B\-+\w+(\-\w+)*/, "\\fB&\\fP") + gsub(/\B\\-+\w+(\-\w+)*/, "\\fB&\\fP") # unprotect dots inside words gsub(/_dOt_/, ".") -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) -- Paul "TBBle" Hampson, [EMAIL PROTECTED] Shorter .sig for a more eco-friendly paperless office.
pgpYtRt8gJVg1.pgp
Description: PGP signature