Difference between revisions of "Inlined MDL Molfile"
Jump to navigation
Jump to search
(→Inlined MDL Molfile) |
|||
Line 55: | Line 55: | ||
The solution is to preserve blank lines in inlined data files.--[[User:Rzepa|Rzepa]] 08:58, 8 June 2006 (CEST) | The solution is to preserve blank lines in inlined data files.--[[User:Rzepa|Rzepa]] 08:58, 8 June 2006 (CEST) | ||
+ | :I get it to work if I commenting out the following line in JmolExtension.php:<br/><code>$this->mValInlineContents = preg_replace("/\n/", "\\n'+\n'", $this->mValInlineContents);</code><br/>--[[User:SHL|SHL]] 06:12, 21 February 2007 (CET) |
Revision as of 05:12, 21 February 2007
Inlined MDL Molfile
This page does not currently display correctly. the problem seems to be the first three lines of the Molfile. If lines 2 and 3 are left blank, the current system strips these lines out entirely, invalidating the Molfile. A title in line 2 preserves it, but we are currently finding out what line 3 should be!
The solution is to preserve blank lines in inlined data files.--Rzepa 08:58, 8 June 2006 (CEST)
- I get it to work if I commenting out the following line in JmolExtension.php:
$this->mValInlineContents = preg_replace("/\n/", "\\n'+\n'", $this->mValInlineContents);
--SHL 06:12, 21 February 2007 (CET)