Skip to content

Commit

Permalink
Revert "Fixed issue with periods in path"
Browse files Browse the repository at this point in the history
  • Loading branch information
vgalin authored Oct 20, 2023
1 parent 7086f03 commit 1cfa48a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions html2image/html2image.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,7 @@ def screenshot(
name = save_as.pop(0)
current_size = size.pop(0)

base_name, _ = os.path.splitext(name)
html_filename = base_name + '.html'
html_filename = name.split('.')[0] + '.html'
content = Html2Image._prepare_html_string(
html, css_style_string
)
Expand Down

0 comments on commit 1cfa48a

Please sign in to comment.