Is there a way to make RDoc use the html entities of stuff like:
The xml parser im using is getting confused by the ‘<’ ‘>’ strings
inside elements… wondering if you can make Rdoc use their char
reference entity instead?
Is there a way to make RDoc use the html entities of stuff like:
The xml parser im using is getting confused by the ‘<’ ‘>’ strings
inside elements… wondering if you can make Rdoc use their char
reference entity instead?
On Thu, Nov 20, 2008 at 23:06, Jose F. [email protected] wrote:
Is there a way to make RDoc use the html entities of stuff like:
The xml parser im using is getting confused by the ‘<’ ‘>’ strings
inside elements… wondering if you can make Rdoc use their char
reference entity instead?
What version rdoc do you have? It seems that
ActiveSupport::TimeZone has it
correct.
Check with “rdoc --version”, update with “gem install rdoc”, latest is
2.2.1.
Jano S. wrote:
On Thu, Nov 20, 2008 at 23:06, Jose F. [email protected] wrote:
Is there a way to make RDoc use the html entities of stuff like:
The xml parser im using is getting confused by the ‘<’ ‘>’ strings
inside elements… wondering if you can make Rdoc use their char
reference entity instead?What version rdoc do you have? It seems that
ActiveSupport::TimeZone has it
correct.
Check with “rdoc --version”, update with “gem install rdoc”, latest is
2.2.1.
I updated to 2.2.1 but it still wont escape the < > characters in the
fr_method_index.html file (which I need to parse), only in the actual
documentation.
On Tue, Nov 25, 2008 at 00:33, Jose F. [email protected] wrote:
I updated to 2.2.1 but it still wont escape the < > characters in the
fr_method_index.html file (which I need to parse), only in the actual
documentation.
Now I see. I’ve reported this to rdoc’s tracker [1] along with a patch:
— lib/rdoc/generator/html.rb (revision 192)
+++ lib/rdoc/generator/html.rb (working copy)
@@ -253,7 +253,7 @@
res = []
collection.sort.each do |f|
if f.document_self
res << { "href" => f.path, "name" => f.index_name }
res << { "href" => f.path, "name" =>
CGI.escapeHTML(f.index_name) }
end
end
i.e.
Jano
[1]
http://rubyforge.org/tracker/index.php?func=detail&aid=22968&group_id=627&atid=2472
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs