[DRE-maint] Bug#838938: rdtool: rd2man-lib.rb introduces spurious spaces around ((*emphasized*)) words in DescListItem Terms

Francesco Poli (wintermute) invernomuto at paranoici.org
Mon Sep 26 20:45:45 UTC 2016


Package: rdtool
Version: 0.6.38-4
Severity: important

Hello again,
I think I found another bug in rd2man-lib.rb .

Steps to reproduce with the attached trivial Ruby Document file:

  $ rd2 -r rd/rd2html-lib.rb -o emph emph.rd

Everything's fine. The resulting HTML file looks OK:

  $ sensible-browser emph.html

But, if I want to get a man page:

  $ rd2 -r rd/rd2man-lib.rb -o emph emph.rd

the resulting man page is:

  $ cat emph.1 
  .\" DO NOT MODIFY THIS FILE! it was generated by rd2
  .TH EMPH 1 "September 2016"
  .TP
  .fi
  .B
  Emphasized [ \fItext\fP ]
  Text surrounded by emphasis inline.

which has additional unintended spaces before and after the emphasis,
causing

  [\fItext\fP]
  
to become

  [ \fItext\fP ]

Visualizing the man page confirms that the the word [text] is displayed
spaced:

  $ man ./emph.1


Is there anything I failed to understand?

If this is indeed a bug in rd2man-lib.rb, please investigate the issue
and fix it, and/or forward my bug report upstream.

Thanks for your time!
Bye.


P.S.: I think the attached test case is so trivial that it is not copyrighted.
      Hence no license should be needed, for the file to be copied, modified,
      and/or distributed. Anyway, should this turn out to be false, I hereby
      grant premission to deal with the file under the terms of the Expat/MIT
      license <http://www.jclark.com/xml/copying.txt>


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages rdtool depends on:
ii  ruby     1:2.3.0+4
ii  ruby-rd  0.6.38-4

rdtool recommends no packages.

rdtool suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emph.rd.gz
Type: application/gzip
Size: 86 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20160926/6f20df80/attachment-0001.bin>


More information about the Pkg-ruby-extras-maintainers mailing list