HTML string rendered as text

16 views
Skip to first unread message

gabriele...@nervianoms.com

unread,
Sep 30, 2013, 11:34:11 AM9/30/13
to yar...@googlegroups.com

Hello,
the default description for scopes includes a piece of html that gets rendered as text, e.g:

+ (Array<Trial>) ongoing

An array of Trials that are ongoing. <strong>Active Record Scope</strong>


I have found where it comes from: from yard-activerecord-0.0.11/lib/yard-activerecord/scopes/scope_handler.rb, but dn't know how to fix it properly:

[...]
    def return_description
      "An array of #{ActiveSupport::Inflector.pluralize namespace.to_s} " +
      "that are #{method_name.split('_').join(' ')}. " +
      "<strong>Active Record Scope</strong>"
    end
[...]

Thanks a lot,

Gabriele


Loren Segal

unread,
Sep 30, 2013, 11:39:53 AM9/30/13
to yar...@googlegroups.com
Hi,

The <strong> tag doesn't exist inside of the RD format, see here: http://rdoc.rubyforge.org/RDoc/Markup.html

You probably want the <b> tag.

Loren

--
 
---
You received this message because you are subscribed to the Google Groups "YARD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yardoc+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages