Solved!

Ok, I found an email thread from Nov.2012 which gave me the clue:

Changing the vertical bars (pipes) for \n solves the issue and works both for 
HTML5 and Java modes.

Bob, maybe the documentation should be ammended now:
http://www.stolaf.edu/academics/chemapps/jmol/docs/#data
says
"In the specific case of a model file, if it is desired to use no new-line 
characters, you can start the data with | (vertical bar) and then use a 
vertical 
bar to separate all lines"

Note that I am defining this model data in javascript, and so cannot use 
actual newlines - that's why I went for the vertical bars. But now the solution 
is using literal  \n  in the javascript string.




------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to