Skip to content

Commit

Permalink
Merge pull request #10444 from ydah/fix-doc-formatting
Browse files Browse the repository at this point in the history
Fix doc formatting written in unescaped file path
  • Loading branch information
koic committed Mar 7, 2022
2 parents 0daf639 + e9ebf75 commit 105f94c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rubocop/cops_documentation_generator.rb
Expand Up @@ -191,8 +191,8 @@ def format_table_value(val)

def wrap_backtick(value)
if value.is_a?(String)
# Use `+` to prevent text like `**/*.gemspec` from being bold.
value.start_with?('*') ? "`+#{value}+`" : "`#{value}`"
# Use `+` to prevent text like `**/*.gemspec`, `spec/**/*` from being bold.
value.include?('*') ? "`+#{value}+`" : "`#{value}`"
else
"`#{value}`"
end
Expand Down

0 comments on commit 105f94c

Please sign in to comment.