Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indented (code/pre) plus sign renders as <tt> #403

Closed
turboladen opened this issue Oct 24, 2011 · 2 comments
Closed

Indented (code/pre) plus sign renders as <tt> #403

turboladen opened this issue Oct 24, 2011 · 2 comments
Milestone

Comments

@turboladen
Copy link

I posted this (which describes the problem a bit more) before realizing the problem was local to Yard:
http://stackoverflow.com/questions/7882985/how-do-i-render-a-verbatim-code-pre-plus-sign-with-rdoc-markup

When I use RDoc markup in my README.rdoc:

Some text

  code block
  +-----+

Then run the Yard Rake task:

YARD::Rake::YardocTask.new do |t|
  t.files = ['{features,lib}/**/*.{feature,rb}', "-", "History.rdoc"]
  t.options = ['--title', "tim Documentation (#{Tim::VERSION})"]
  t.options += %w(--readme README.rdoc)
  t.options += %w(--private --protected --verbose)
end

...I get HTML:

<p>
  Some text
</p>
<pre class="code">
  <tt>-----</tt>
</pre>

I'd expect this to render HTML:

<p>
  Some text
</p>
<pre class="code">
  +-----+
</pre>

If I do $ rdoc README.rdoc, I see that I get the HTML that I'd expect.

Using yard 0.7.3, rdoc 3.10.

@lsegal lsegal closed this as completed in f94a5f1 Dec 3, 2011
@lsegal
Copy link
Owner

lsegal commented Dec 3, 2011

Thanks for the report!

@turboladen
Copy link
Author

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants