Package: help2man
Version: 1.44.1
Severity: minor
Tags: patch

Dear Maintainer,

   * What led up to the situation?

  Reading a resulting output (man page)

   * What was the outcome of this action?

  Noticed that an italic correction was missing before \fI (\,) and before
(or after) the change from that font (\/).

  Patch:

--- help2man    2014-02-02 04:12:42.000000000 +0000
+++ help2man.new        2014-03-21 17:10:57.000000000 +0000
@@ -388,13 +388,15 @@ if ($help_text =~ s/^($PAT_USAGE):( +(\S
        s/^(\S+) *//;
        $synopsis .= ".B $1\n";
        s/\s+$//;
-       s/(([][]|\.\.+)+)/\\fR$1\\fI/g;
+       s!(([][]|\.\.+)+)!\\/\\fR$1\\,\\fI!g;
        s/^/\\fI/ unless s/^\\fR//;
-       $_ .= '\fR';
+       $_ .= '\/\fR';
        s/(\\fI)( *)/$2$1/g;
-       s/\\fI\\fR//g;
+       s!\\fI\\/\\fR!!g;
        s/^\\fR//;
        s/\\fI$//;
+       s!\\/(\\fR)$!$1!;
+       s/\\, / /g;
        s/^\./\\&./;
 
        $synopsis .= "$_\n";
@@ -591,7 +593,7 @@ while (length)
                    (?:/\w(?:[\w.-]*\w)?)+      # path components
                )
                ($|[ ,;.)])                     # space/punctuation after
-           !$1\\fI$2\\fP$3!xmg;
+           !$1\\,\\fI$2\\/\\fP$3!xmg;
        }
 
        # Escape remaining hyphens.
@@ -746,11 +748,18 @@ sub convert_option
     local $_ = '\fB' . shift;
 
     s/-/\x83/g;
-    unless (s/\[=(.*)\]$/\\fR[=\\fI$1\\fR]/)
+    unless (s!\[=(.*)\]$!\\fR[=\\,\\fI$1\\/\\fR]!)
     {
-       s/=(.)/\\fR=\\fI$1/;
+       s!=(.)!\\fR=\\,\\fI$1!;
        s/ (.)/ \\fI$1/;
-       $_ .= '\fR';
+       if ($_ =~ /\\fI/)
+       {
+           $_ .= '\/\fR';
+       }
+       else
+       {
+           $_ .= '\fR';
+       }
     }
 
     $_;


-- System Information:
Debian Release: jessie/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'testing'), (500, 'stable')
Architecture: i386 (i586)

Kernel: Linux 3.2.53-rt75-1
Locale: LANG=is_IS, LC_CTYPE=is_IS (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages help2man depends on:
ii  dpkg                    1.17.6
ii  install-info            5.2.0.dfsg.1-2
ii  libc6                   2.17-97
ii  liblocale-gettext-perl  1.05-7+b2
ii  perl                    5.18.2-2

help2man recommends no packages.

help2man suggests no packages.

-- no debconf information

-- 
Bjarni I. Gislason


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to