[DRE-maint] Bug#838940: rdtool: rd2man-lib.rb messes up with following DescListItem, if Description is multi-TextBlock

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


Package: rdtool
Version: 0.6.38-4
Severity: important

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

Steps to reproduce with the attached trivial Ruby Document file:

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

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

  $ sensible-browser desc.html

But, if I want to get a man page:

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

the resulting man page is:

  $ cat desc.1 
  .\" DO NOT MODIFY THIS FILE! it was generated by rd2
  .TH DESC 1 "September 2016"
  .TP
  .fi
  .B
  Term
  Description.

  More description..TP
  .fi
  .B
  Another term
  Another description.

which lacks the newline character before the second .TP
causing

  More description.
  .TP

to become

  More description..TP

Visualizing the man page confirms that the second DescListItem is not
rendered correctly:

  $ man ./desc.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: desc.rd.gz
Type: application/gzip
Size: 76 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20160926/1eca3346/attachment.bin>


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