add newline between js and custom
This commit is contained in:
parent
98492ce27f
commit
4899164ac2
2 changed files with 4 additions and 2 deletions
|
|
@ -270,7 +270,9 @@ class _DocType:
|
|||
from webnotes.model.code import get_custom_script
|
||||
custom = get_custom_script(doc.name, 'Client') or ''
|
||||
|
||||
doc.fields['__client_script'] = Module(doc.module).get_doc_file('doctype', doc.name, '.js').read() + custom
|
||||
doc.fields['__client_script'] = \
|
||||
Module(doc.module).get_doc_file('doctype', doc.name, '.js').read() \
|
||||
+ '\n' + custom
|
||||
self._load_select_options(doclist)
|
||||
self._clear_code(doclist)
|
||||
|
||||
|
|
|
|||
|
|
@ -320,7 +320,7 @@ class JsModuleFile(ModuleFile):
|
|||
from webnotes.model.code import get_custom_script
|
||||
custom = get_custom_script(name, 'Client') or ''
|
||||
|
||||
return JsModuleFile(path).read() + custom
|
||||
return JsModuleFile(path).read() + '\n' + custom
|
||||
|
||||
def read(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue