Skip to content

Commit

Permalink
Update surface.py
Browse files Browse the repository at this point in the history
Fixed comment with two ##
  • Loading branch information
yig committed Oct 11, 2019
1 parent 7a89808 commit 279fff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cairosvg/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ def __init__(self, tree, output, dpi, parent_surface=None,
if output_width and output_height:
width, height = output_width, output_height
elif output_width:
## Keep the aspect ratio
# Keep the aspect ratio
height = float(height)/float(width)*output_width
width = output_width
elif output_height:
## Keep the aspect ratio
# Keep the aspect ratio
width = float(width)/float(height)*output_height
height = output_height
else:
Expand Down

0 comments on commit 279fff1

Please sign in to comment.