-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove extra backslashes from code snippets #3139
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ def block_comment(text, options = {}) | |
text.lines.map do |line| | ||
line = line.rstrip | ||
if line == '' | ||
"#" | ||
'#' | ||
else | ||
"##{gap}#{line}" | ||
end | ||
|
@@ -118,10 +118,6 @@ def html_to_markdown(html, options = {}) | |
if html | ||
html = "<p>#{html}</p>" unless html.match(/<\w+>/) | ||
|
||
# unescaped curly braces cause YARD errors, they are interpreted | ||
# as code links. | ||
html = html.gsub('{', "\\{").gsub('}', "\\}") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could we take an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That doesn't fix inline code snippets in the documentation. This applies on the whole block of documentation text. |
||
|
||
# Kramdown generates invalid markup when there are attributes | ||
# on the code tag, have to reduce these down to get the proper markdown. | ||
html = html.gsub(/<code.*?>(.+?)<\/code>/) { "<code>#{$1}</code>" } | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,6 @@ module AsymmetricCredentials | |
|
||
N_MINUS_2 = 0xFFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551 - 2 | ||
|
||
# @param [String] :access_key_id | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why remove these? They are still the correct paramters here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The module is API private and these were wrong. These are positional parameters but they were symbolized name, so it produced a warning. I just deleted them because it's clear what they are (and API private). |
||
# @param [String] :secret_access_key | ||
# @return [OpenSSL::PKey::EC, Hash] | ||
def self.derive_asymmetric_key(access_key_id, secret_access_key) | ||
check_openssl_support! | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this just not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so...