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

Fix CodeFence with unintended Array for format #530

Merged
merged 2 commits into from
Oct 10, 2017

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Sep 28, 2017

The rule ( !"`" Nonspacechar )+ for format variable becomes Array but #intern is called for format variable and it means format variable is expected as String, so this commit adds checking instance_of?(String).

This fixes #417, https://github.com/izwick-schachter/atd/issues/18 and the same bug of YARD because YARD uses RDoc internal Markdown engine.

The rule ( !"`" Nonspacechar )+ for "format" variable becomes Array
but #intern is called for "format" variable and it means "format"
variable is expected as String, so this commit adds checking
instance_of?(String).
@hsbt hsbt merged commit 1ae47bb into ruby:master Oct 10, 2017
@aycabta aycabta deleted the fix-code-fence branch October 10, 2017 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Rdoc Error on my README.md
2 participants