
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.jmol.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AInlined_MDL_Molfile</id>
	<title>Talk:Inlined MDL Molfile - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jmol.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AInlined_MDL_Molfile"/>
	<link rel="alternate" type="text/html" href="https://wiki.jmol.org/index.php?title=Talk:Inlined_MDL_Molfile&amp;action=history"/>
	<updated>2026-04-15T16:10:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://wiki.jmol.org/index.php?title=Talk:Inlined_MDL_Molfile&amp;diff=6602&amp;oldid=prev</id>
		<title>AngelHerraez: move comments to Talk/Discussion page</title>
		<link rel="alternate" type="text/html" href="https://wiki.jmol.org/index.php?title=Talk:Inlined_MDL_Molfile&amp;diff=6602&amp;oldid=prev"/>
		<updated>2010-11-23T19:32:37Z</updated>

		<summary type="html">&lt;p&gt;move comments to Talk/Discussion page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''''This problem was solved on 8-9 Dec. 2008'''''&lt;br /&gt;
&lt;br /&gt;
This page does not currently display correctly.  the problem seems to be the first three lines of the Molfile.&lt;br /&gt;
If lines  2 and 3 are left blank, the current system strips these lines out entirely, invalidating the Molfile.&lt;br /&gt;
A title in line  2 preserves it, but  we are currently finding out what line 3 should be! &lt;br /&gt;
&lt;br /&gt;
The solution is to preserve blank lines in inlined data files.--[[User:Rzepa|Rzepa]] 08:58, 8 June 2006 (CEST)&lt;br /&gt;
:I get it working when commenting out the following line in JmolExtension.php:&amp;lt;br/&amp;gt;&amp;lt;code&amp;gt;$this-&amp;gt;mValInlineContents = preg_replace(&amp;quot;/\n/&amp;quot;, &amp;quot;\\n'+\n'&amp;quot;, $this-&amp;gt;mValInlineContents);&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;--[[User:SHL|SHL]] 06:13, 21 February 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
I think the problem is not in the contents of the first 3 lines, but in the MediaKiwi extension parsing incorrectly the newline characters (the code mentioned above by SHL and belonging to Jmol.body.php), &lt;br /&gt;
which inserts literal single quotes in the call to jmolAppletInline() that remain there after being passed through Jmol.js. Since this latter inserts a vertical bar (pipe, |) in every new line, I think that the quotes and the excess \n are not needed any longer. The same ought to happen with an [[Inlined PDB File]]. [[Inlined CML File]] works I guess because it does not depend on newlines, or maybe because of the CDATA tags. I cannot test it since I don't have a WikiMedia implementation of my own. --[[User:AngelHerraez|AngelHerraez]] 21:32, 30 November 2008 (CET)&lt;br /&gt;
: OK, I have confirmed this in a local wiki. Commenting out the line in Jmol.body.php solves the problem for inline MOL data. I guess the change may have been raised by a new Jmol.js version. Once I double-check this, I will commit a fix to SVN and have it implemented in this wiki. --[[User:AngelHerraez|AngelHerraez]] 13:51, 7 December 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
:: Verified today; the change was applied indeed at some time in the Extension (currently in the Jmol.body.php file). --[[User:AngelHerraez|AngelHerraez]] 20:32, 23 November 2010 (CET)&lt;/div&gt;</summary>
		<author><name>AngelHerraez</name></author>
		
	</entry>
</feed>