This bug is fixed for Jmol 11.5.27. In the mean time, just make sure you 
add a space character to the beginning of any file data starting with \n 
or \r.

Bob


Angel Herráez wrote:

>Sorry if that wasn't clear enough.
>
>I'm reading the state from the original window using
>       var x = jmolGetPropertyAsString("stateInfo")
>and then applying it to the new window using
>       script javascript:x
>
>On 8 Apr 2008 at 21:56, Angel Herráez wrote:
>
>  
>
>>For MOLfiles witout content in the first line (mine is generated as inline 
>>model by reading a 
>>textarea), the call to
>>      jmolGetPropertyAsString("stateInfo")
>>returns a string that has
>>      data "model inline"
>>followed by a line break and the second line of the MOLfile.  It seems that 
>>this is due to the 
>>first data line (empty here) being appended after "model inline" without any 
>>new line.
>>
>>So then, when I feed that string into Jmol (resizable popup) using
>>      getState()
>>there is an error -format not recognized.
>>
>>This is fixed if I manually enter any text -even a space- into the first line 
>>or if I replace the 
>>first  \n  with \n \n
>>
>>Could this detail be fixed in stateInfo?
>>    
>>
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>Register now and save $200. Hurry, offer ends at 11:59 p.m., 
>Monday, April 7! Use priority code J8TLD2. 
>http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>_______________________________________________
>Jmol-developers mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-developers
>  
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get. 

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to