Your message dated Sun, 13 May 2012 02:23:43 +0900 (JST)
with message-id <[email protected]>
and subject line Re: librd-html-ext-ruby1.8: can't convert rd to html with 
include syntax ("<<<") and head element.
has caused the Debian Bug report #501438,
regarding librd-html-ext-ruby1.8: can't convert rd to html with include syntax 
("<<<") and head element.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
501438: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501438
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: librd-html-ext-ruby1.8
Version: 0.1.4-1
Severity: normal

When I use this library, can't convert .rd to .html.
RD file have include syntax "<<<" , and head part "=begin head, =end"

$ rd2 -r rd/rd2html-ext-lib -r rd/head-filter \
  --head-elements --with-part=head:head 

  /usr/lib/ruby/1.8/rd/search-file.rb:7:in `+': can't convert nil into String 
(TypeError)
     from /usr/lib/ruby/1.8/rd/search-file.rb:7:in `search_file'
     from /usr/lib/ruby/1.8/rd/search-file.rb:6:in `each'
     from /usr/lib/ruby/1.8/rd/search-file.rb:6:in `search_file'
     from /usr/lib/ruby/1.8/rd/search-file.rb:5:in `each'
     from /usr/lib/ruby/1.8/rd/search-file.rb:5:in `search_file'
     from /usr/lib/ruby/1.8/rd/output-format-visitor.rb:23:in `apply_to_Include'
     from (eval):2:in `visit_Include'
     from /usr/lib/ruby/1.8/rd/block-element.rb:65:in `accept'
     from /usr/lib/ruby/1.8/rd/visitor.rb:20:in `visit_children'
     from /usr/lib/ruby/1.8/rd/element.rb:45:in `each_child'
     from /usr/lib/ruby/1.8/rd/element.rb:44:in `each'
     from /usr/lib/ruby/1.8/rd/element.rb:44:in `each_child'
     from /usr/lib/ruby/1.8/rd/visitor.rb:19:in `visit_children'
     from (eval):2:in `visit_DocumentElement'
     from /usr/lib/ruby/1.8/rd/element.rb:144:in `accept'
     from /usr/lib/ruby/1.8/rd/tree.rb:78:in `accept'
     from /usr/lib/ruby/1.8/rd/visitor.rb:14:in `visit'
     from /usr/lib/ruby/1.8/rd/rd2html-lib.rb:62:in `visit'
     from /usr/lib/ruby/1.8/rd/rd2html-ext-lib.rb:42:in `visit'
     from /usr/bin/rd2:241

Source files are here.

$ cat test.rd
=begin
= rd2html-ext-lib.rb 's test

foo bar baz

== test for include

<<< include

=end
=begin head
<meta http-equiv="content-script-type" content="text/javascript" />
=end

$ cat include.html
<p>
this is test
</p>


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26.deutzia (PREEMPT)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=ANSI_X3.4-1968) 
(ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages librd-html-ext-ruby1.8 depends on:
ii  librd-ruby1.8                 0.6.20-1   RDTool library for Ruby 1.8

Versions of packages librd-html-ext-ruby1.8 recommends:
ii  rdtool                        0.6.20-1   RD document formatter

Versions of packages librd-html-ext-ruby1.8 suggests:
ii  libimage-size-ruby1.8         1:0.1.1-2  ruby extension to measure image (G

-- no debconf information





--- End Message ---
--- Begin Message ---
Hi,

It has been fixed at rdtool-0.6.34 (rd2html-ext-lib has been merged
with rdtool from this version).

% cat test.rd
=begin
= rd2html-ext-lib.rb 's test

foo bar baz

== test for include

<<< include

=end
=begin head
<meta http-equiv="content-script-type" content="text/javascript" />
=end

% cat include.html
<p>
this is test
</p>

% rd2 -r rd/rd2html-ext-lib -r rd/head-filter --head-element 
--with-part=head:head test.rd 
<?xml version="1.0" ?>
<!DOCTYPE html 
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<title>test.rd</title>
<meta http-equiv="content-script-type" content="text/javascript" />

</head>
<body>
<h1><a name="label-0" id="label-0">rd2html-ext-lib.rb 's test</a></h1><!-- 
RDLabel: "rd2html-ext-lib.rb 's test" -->
<p>foo bar baz</p>
<h2><a name="label-1" id="label-1">test for include</a></h2><!-- RDLabel: "test 
for include" -->
<p>
this is test
</p>

 

</body>
</html>


--- End Message ---
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

Reply via email to