Skip to content

Commit

Permalink
cove.input.views: Remove newlines from start of translated strings
Browse files Browse the repository at this point in the history
This breaks pseudo translations, possibly real ones too.

open-contracting/cove-ocds#144
  • Loading branch information
Bjwebb committed Feb 18, 2021
1 parent 1bdb16b commit 3c6e2af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cove/input/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ def data_input(request, form_classes=default_form_classes, text_file_name='test.
'sub_title': _("Sorry we got a ConnectionError whilst trying to download that file"),
'link': 'index',
'link_text': _('Try Again'),
'msg': _(str(err) + '\n\n Common reasons for this error include supplying a local '
'msg': str(err) + '\n\n' + _('Common reasons for this error include supplying a local '
'development url that our servers can\'t access, or misconfigured SSL certificates.')
})
except requests.HTTPError as err:
return render(request, 'error.html', context={
'sub_title': _("Sorry we got a HTTP Error whilst trying to download that file"),
'link': 'index',
'link_text': _('Try Again'),
'msg': _(str(err) + '\n\n If you can access the file through a browser then the problem '
'msg': str(err) + '\n\n' + _('If you can access the file through a browser then the problem '
'may be related to permissions, or you may be blocking certain user agents.')
})
elif form_name == 'text_form':
Expand Down

0 comments on commit 3c6e2af

Please sign in to comment.