Forum: Ruby How to force \n in RDoc?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0f1f17ba297242e9d3c86d4cc0a6ea85?d=identicon&s=25 Iñaki Baz Castillo (Guest)
on 2009-03-04 23:41
(Received via mailing list)
Hi, I don't find how to force a simple \n in RDoc. For example:

  # This methods does blablabla...
  # And this is a new line.

Unfortunatelly RDoc displays both lines in an unique line.

I could get it by doing:

  # This methods does blablabla...
  #
  # And this is a new line.

but then RDoc adds an extra line (empty) and I don't want it.

Thanks.
5a837592409354297424994e8d62f722?d=identicon&s=25 Ryan Davis (Guest)
on 2009-03-05 02:56
(Received via mailing list)
On Mar 4, 2009, at 14:39 , Iñaki Baz Castillo wrote:

> Hi, I don't find how to force a simple \n in RDoc. For example:
>
>  # This methods does blablabla...
>  # And this is a new line.
>
> Unfortunatelly RDoc displays both lines in an unique line.

<br>
5a837592409354297424994e8d62f722?d=identicon&s=25 Ryan Davis (Guest)
on 2009-03-05 02:58
(Received via mailing list)
On Mar 4, 2009, at 14:39 , Iñaki Baz Castillo wrote:

>  # This methods does blablabla...
>  # And this is a new line.
>
> Unfortunatelly RDoc displays both lines in an unique line.

or are you trying to show a code sample?

otherwise, I really can't see why you care about adding newlines.
Prose is prose.
0f1f17ba297242e9d3c86d4cc0a6ea85?d=identicon&s=25 Iñaki Baz Castillo (Guest)
on 2009-03-05 22:23
(Received via mailing list)
El Jueves, 5 de Marzo de 2009, Ryan Davis
escribió:> On Mar 4, 2009, at 14:39 , Iñaki Baz Castillo wrote:
> > Hi, I don't find how to force a simple \n in RDoc. For example:
> >
> >  # This methods does blablabla...
> >  # And this is a new line.
> >
> > Unfortunatelly RDoc displays both lines in an unique line.
>
> <br>

Thanks :)
This topic is locked and can not be replied to.