add newline between js and custom

This commit is contained in:
Rushabh Mehta 2011-07-28 16:54:05 +05:30
parent 98492ce27f
commit 4899164ac2
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -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):
"""