| Pages: [1] |
|
|
Author |
Topic: SM adds a line break to JS file, causing error (Read 418 times) |
|
pardus
Posts: 2
|
I am trying to use SM to edit a js file. the JS file has variables that need to be on one line, if they get split onto 2, then the script wont function.
If I upload a fresh working JS file, open it and not even edit anything, just save it again, it splits up the lines.
example.
quotes[0]='<!-- #BeginSnippet name="Quote 1 -->the editable text here<!-- #EndSnippet -->'
and after save it does
quotes[0]='<!-- #BeginSnippet name="Quote 1 -->the editable text here
<!-- #EndSnippet -->'
how do i get it to stop doing that?
|
|
|
|
|
admin
Forum Administrator

Posts: 2527
SnippetMaster Author
|
|
|
|
|
|
|
pardus
Posts: 2
|
Thanks that worked using that attribute.
I tried opening it normally in wysiwyg and then switching to text but that seemed to add the lines.
thanks for your quick response 
|
|
|
|
|
|
|
Pages: [1]
|
|
|
|