<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2858: gnuplot_svg.js cannot create JSON with settings</title><link href="https://sourceforge.net/p/gnuplot/bugs/2858/" rel="alternate"/><link href="https://sourceforge.net/p/gnuplot/bugs/2858/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuplot/bugs/2858/</id><updated>2026-02-20T04:14:43.389000Z</updated><subtitle>Recent changes to 2858: gnuplot_svg.js cannot create JSON with settings</subtitle><entry><title>#2858 gnuplot_svg.js cannot create JSON with settings</title><link href="https://sourceforge.net/p/gnuplot/bugs/2858/?limit=25#69b7" rel="alternate"/><published>2026-02-20T04:14:43.389000Z</published><updated>2026-02-20T04:14:43.389000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.neta967d7ebde4c135ae7a3df6f5fda4ee3ed1138b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am not able to reproduce this.  Is your browser not able to display the SVG on-line demos?&lt;br/&gt;
&lt;a href="https://gnuplot.sourceforge.net/demo_svg_6.0/" rel="nofollow"&gt;https://gnuplot.sourceforge.net/demo_svg_6.0/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What O/S and browser are you using?&lt;br/&gt;
 I would be happy to look a patch, but it will be hard to test and evaluate if I can't reproduce the problem.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>gnuplot_svg.js cannot create JSON with settings</title><link href="https://sourceforge.net/p/gnuplot/bugs/2858/" rel="alternate"/><published>2026-02-17T11:01:07.634000Z</published><updated>2026-02-17T11:01:07.634000Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net4812a292a01372c1a74f52b5073426c9362884a0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If an SVG file with &lt;code&gt;mouse&lt;/code&gt; is created, embedded into a web page and then opened in a browser, &lt;code&gt;parseSettings()&lt;/code&gt; in &lt;code&gt;gnuplot_svg()&lt;/code&gt; in &lt;code&gt;gnuplot_svg.js&lt;/code&gt; tries to convert the commented JavaScript with statements line &lt;code&gt;gnuplot_svg.setting = (value);&lt;/code&gt; into JSON.&lt;/p&gt;
&lt;p&gt;However, the comment fragment contains more newlines than expected and after all regexes are applied has double commas, commas in the beginning and commas in the end; causing &lt;code&gt;JSON.parse()&lt;/code&gt; to fail, breaking all subsequent JavaScript.&lt;/p&gt;
&lt;p&gt;I would like to submit a patch fixing this, and for this purpose creating this bug.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>