Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Dec 2, 2023
1 parent 9f7cf10 commit bd1444f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,7 @@ require:
- ./cops/to_pdf_no_debug.rb
AllCops:
TargetRubyVersion: 2.7
Capybara/MatchStyle:
Enabled: false
Capybara/NegationMatcher:
Enabled: false
Capybara/SpecificActions:
Enabled: false
Capybara/SpecificFinders:
Enabled: false
Capybara/SpecificMatcher:
Capybara:
Enabled: false
Gemspec/DeprecatedAttributeAssignment:
Enabled: true
Expand Down
2 changes: 1 addition & 1 deletion lib/asciidoctor/pdf/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4164,7 +4164,7 @@ def resolve_explicit_width attrs, opts = {}
str_to_pt width
end
elsif attrs.key? 'scale'
%(#{attrs['scale']}).extend ImageWidth
attrs['scale'].to_s.extend ImageWidth
elsif attrs.key? 'scaledwidth'
# NOTE: the parser automatically appends % if value is unitless
if (width = attrs['scaledwidth']).end_with? '%'
Expand Down

0 comments on commit bd1444f

Please sign in to comment.