We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55abd3f commit 9de0718Copy full SHA for 9de0718
src/attributecode/gen.py
@@ -93,8 +93,12 @@ def check_newline_in_file_field(component):
93
if k in file_fields:
94
try:
95
if '\n' in component[k]:
96
- msg = ("New line character detected in '%s' for '%s' which is not supported."
97
- "\nPlease use ',' to declare multiple files.") % (k, component['about_resource'])
+ if k == u'about_resource':
+ msg = (
98
+ "New line character detected in 'about_resource' for '%s' which is not supported.") % component['about_resource']
99
+ else:
100
+ msg = ("New line character detected in '%s' for '%s' which is not supported."
101
+ "\nPlease use ',' to declare multiple files.") % (k, component['about_resource'])
102
errors.append(Error(CRITICAL, msg))
103
except:
104
pass
0 commit comments