Skip to content

Commit

Permalink
strip URL in add page widget
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Feb 1, 2016
1 parent 37ce699 commit 1d5f147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formasaurus/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def AddPageWidget(storage):
fetch_btn = widgets.Button(description='Add')

def on_submit(_):
url = url_field.value
url = url_field.value.strip()
html = download(url)
path = storage.add_result(html, url, add_empty=False)
if path is None:
Expand Down

0 comments on commit 1d5f147

Please sign in to comment.