[ruby-talk:00907] Re: RDtool-0.5.0

From: Kazuhiro HIWADA <hiwada@...>
Date: 1999-11-04 17:55:32 UTC
List: ruby-talk #907
Hi,

From: matz@netlab.co.jp (Yukihiro Matsumoto)
Subject: [ruby-talk:00906] Re: RDtool-0.5.0
Date: Fri, 05 Nov 1999 01:48:44 +0900

> |> We should consider about makeing label (e.g. <a name="xxx"> etc.) too.
> |
> |But gotoken proposed needlessness of inline label in [ruby-list:16148].
> |I agree it. We can refer to Headline and item of DescList, that might be
> |enough.
> |Do You need it??
> 
> Hmm, I was thinking about refering desclist items, as in ruby-man.
> Maybe headlines and desclist items are good enough.

How do you think about the case in which Headlines make conflinct.

=Foo
==Quux

=Bar
==Quux

((<Quux>))

I don't need any other way so much. (I like simple syntax :-) But if
there is an alternative, it would be better.

BTW, I found a tiny bug.  This is the patch.

--- rd2html-lib.rb.orig  Wed Oct 27 13:57:39 1999
+++ rd2html-lib.rb  Wed Oct 27 13:58:51 1999
@@ -20,5 +20,5 @@
       if element.is_a?(Headline)
-       @labels[element.title] |= @labels.size
+       @labels[element.title] ||= @labels.size
       elsif element.is_a?(DescListItem)
-       @labels[element.term] |= @labels.size
+       @labels[element.term] ||= @labels.size
       end

--
best regards,
Kazuhiro HIWADA

In This Thread