From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: [bug] Export to FreeMind (HTML) fails due to ampersant in URL Date: Wed, 4 Feb 2015 17:46:25 +0100 Message-ID: <2015-02-04T17-41-08@devnull.Karl-Voit.at> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ36F-0005d6-UY for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 11:46:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ36C-0002sD-Nh for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 11:46:47 -0500 Received: from plane.gmane.org ([80.91.229.3]:42695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ36C-0002s5-Be for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 11:46:44 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YJ36B-0001rR-8B for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 17:46:43 +0100 Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Feb 2015 17:46:43 +0100 Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Feb 2015 17:46:43 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi! Org-mode version 8.3beta (release_8.3beta-721-gd1c5dc) on GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 When I export a simple heading like below, which contains an URL with an ampersant (&), FreeMind throws an error: ,----[ The exported heading ] | ** Freemind-Tests | | - [[https://www.youtube.com/watch?v=qwtVtcQQfqc&feature=player_embedded][Emacs Rocks 11 - swank-js]] `---- ,----[ FreeMind v1.0.1 Error Message ] | Error while parsing file:freemind.main.XMLParseException: XML Parse Exception | during parsing of the XML definition at line 1: Unexpected end of data reached `---- ,----[ resulting mm-file ] | | | | | | | | |

Freemind-Tests |

| | |
| | | | | | | | | |
|
`---- When I remove the "&" from the mm-file, FreeMind is able to import/show the mind-map without any issues. This might be related with the HTML exporter since ox-freemind.el is using ox-html. -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] Export to FreeMind (HTML) fails due to ampersant in URL Date: Thu, 05 Feb 2015 10:08:03 +0100 Message-ID: <87k2zw20b0.fsf@nicolasgoaziou.fr> References: <2015-02-04T17-41-08@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJIOx-0005NG-IA for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 04:07:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJIOs-0002IU-If for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 04:07:07 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:37591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJIOs-0002I4-Bu for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 04:07:02 -0500 In-Reply-To: <2015-02-04T17-41-08@devnull.Karl-Voit.at> (Karl Voit's message of "Wed, 4 Feb 2015 17:46:25 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Karl Voit Cc: Karl Voit , emacs-orgmode@gnu.org Hello, Karl Voit writes: > When I export a simple heading like below, which contains an URL > with an ampersant (&), FreeMind throws an error: > > ,----[ The exported heading ] > | ** Freemind-Tests > | > | - [[https://www.youtube.com/watch?v=qwtVtcQQfqc&feature=player_embedded][Emacs Rocks 11 - swank-js]] > `---- > > ,----[ FreeMind v1.0.1 Error Message ] > | Error while parsing file:freemind.main.XMLParseException: XML Parse Exception > | during parsing of the XML definition at line 1: Unexpected end of data reached > `---- > > ,----[ resulting mm-file ] > | > | > | > | > | > | > | > | > |

Freemind-Tests > |

> | > | > |
> | > | > | > | > | > | > | > | > | > |
> |
> `---- > > When I remove the "&" from the mm-file, FreeMind is able to > import/show the mind-map without any issues. > > This might be related with the HTML exporter since ox-freemind.el is > using ox-html. This looks like valid HTML code to me. Also it exports fine to HTML. Is there any restriction related to this specific to FreeMind? Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: [bug] Export to FreeMind (HTML) fails due to ampersand in URL Date: Thu, 5 Feb 2015 12:03:28 +0100 Message-ID: <2015-02-05T11-55-37@devnull.Karl-Voit.at> References: <2015-02-04T17-41-08@devnull.Karl-Voit.at> <87k2zw20b0.fsf@nicolasgoaziou.fr> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJKE0-0003rC-Gv for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 06:03:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJKDw-0001dK-CQ for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 06:03:56 -0500 Received: from plane.gmane.org ([80.91.229.3]:38972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJKDw-0001dE-4N for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 06:03:52 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YJKDt-0005Xj-JI for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 12:03:49 +0100 Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2015 12:03:49 +0100 Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2015 12:03:49 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * Nicolas Goaziou wrote: > Hello, Hi! > Karl Voit writes: > >> ,----[ resulting mm-file ] >> |
  • Emacs Rocks 11 - swank-js
  • >> `---- >> >> When I remove the "&" from the mm-file, FreeMind is able to >> import/show the mind-map without any issues. Forgot to mention: when I start xml-mode with the mm-file, it shows one error at the ampersand (missing semi-colon) as well. >> This might be related with the HTML exporter since ox-freemind.el is >> using ox-html. > > This looks like valid HTML code to me. Also it exports fine to HTML. Is > there any restriction related to this specific to FreeMind? I checked with an HTML verifier from http://validator.w3.org/check (HTML Snippet, XHTML 1.0 Strict): ,----[ Generated HTML page for validator ] | | | | | I AM YOUR DOCUMENT TITLE REPLACE ME | | | | | | | | | `---- There are multiple errors and warnings that relate to the ampersand. So I guess the URL is not quoted/sanitized properly. -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [bug] Export to FreeMind (HTML) fails due to ampersant in URL Date: Thu, 05 Feb 2015 12:27:57 +0100 Message-ID: <87oap8ha2q.fsf@Rainer.invalid> References: <2015-02-04T17-41-08@devnull.Karl-Voit.at> <87k2zw20b0.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJKbP-0003Ah-EA for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 06:28:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJKbM-0000zr-Ok for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 06:28:07 -0500 Received: from plane.gmane.org ([80.91.229.3]:40363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJKbM-0000zk-Hu for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 06:28:04 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YJKbL-00038z-9U for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 12:28:03 +0100 Received: from p54b47f7e.dip0.t-ipconnect.de ([84.180.127.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2015 12:28:03 +0100 Received: from Stromeko by p54b47f7e.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2015 12:28:03 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > This looks like valid HTML code to me. Also it exports fine to HTML. Is > there any restriction related to this specific to FreeMind? Valid HTML, maybe (I've not checked). Valid XML, no. http://freemind.sourceforge.net/wiki/index.php/File_format Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ DIY Stuff: http://Synth.Stromeko.net/DIY.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] Export to FreeMind (HTML) fails due to ampersant in URL Date: Thu, 05 Feb 2015 12:58:35 +0100 Message-ID: <87d25o1ses.fsf@nicolasgoaziou.fr> References: <2015-02-04T17-41-08@devnull.Karl-Voit.at> <87k2zw20b0.fsf@nicolasgoaziou.fr> <87oap8ha2q.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJL3t-0002GR-Ar for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 06:57:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJL3p-00036z-TA for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 06:57:33 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:35634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJL3p-00036P-NX for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 06:57:29 -0500 In-Reply-To: <87oap8ha2q.fsf@Rainer.invalid> (Achim Gratz's message of "Thu, 05 Feb 2015 12:27:57 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: > Nicolas Goaziou writes: >> This looks like valid HTML code to me. Also it exports fine to HTML. Is >> there any restriction related to this specific to FreeMind? > > Valid HTML, maybe (I've not checked). Valid XML, no. > http://freemind.sourceforge.net/wiki/index.php/File_format This should be fixed, then. Thank you. Regards, From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: [bug] Export to FreeMind (HTML) fails due to ampersant in URL Date: Thu, 5 Feb 2015 17:59:52 +0100 Message-ID: <2015-02-05T17-59-15@devnull.Karl-Voit.at> References: <2015-02-04T17-41-08@devnull.Karl-Voit.at> <87k2zw20b0.fsf@nicolasgoaziou.fr> <87oap8ha2q.fsf@Rainer.invalid> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJPms-0002aM-30 for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 12:00:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJPmm-0007pq-0s for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 12:00:18 -0500 Received: from plane.gmane.org ([80.91.229.3]:34557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJPml-0007pM-RV for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 12:00:11 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YJPmh-0002PL-0z for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 18:00:07 +0100 Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2015 18:00:07 +0100 Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2015 18:00:07 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * Achim Gratz wrote: > Nicolas Goaziou writes: >> This looks like valid HTML code to me. Also it exports fine to HTML. Is >> there any restriction related to this specific to FreeMind? > > Valid HTML, maybe (I've not checked). Valid XML, no. > http://freemind.sourceforge.net/wiki/index.php/File_format Since FreeMind seems to use an XML format, I checked with XHTML which is not HTML - you're right. -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: [bug] Export to FreeMind (HTML) fails due to ampersant in URL Date: Mon, 9 Feb 2015 08:42:39 +0100 Message-ID: <2015-02-09T08-42-09@devnull.Karl-Voit.at> References: <2015-02-04T17-41-08@devnull.Karl-Voit.at> <87k2zw20b0.fsf@nicolasgoaziou.fr> <87oap8ha2q.fsf@Rainer.invalid> <87d25o1ses.fsf@nicolasgoaziou.fr> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKizk-0000WJ-W6 for emacs-orgmode@gnu.org; Mon, 09 Feb 2015 02:43:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKizh-0006WI-P6 for emacs-orgmode@gnu.org; Mon, 09 Feb 2015 02:43:00 -0500 Received: from plane.gmane.org ([80.91.229.3]:45145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKizh-0006WE-Iv for emacs-orgmode@gnu.org; Mon, 09 Feb 2015 02:42:57 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YKizg-0005mc-7d for emacs-orgmode@gnu.org; Mon, 09 Feb 2015 08:42:56 +0100 Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Feb 2015 08:42:56 +0100 Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Feb 2015 08:42:56 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * Nicolas Goaziou wrote: > Achim Gratz writes: > >> Nicolas Goaziou writes: >>> This looks like valid HTML code to me. Also it exports fine to HTML. Is >>> there any restriction related to this specific to FreeMind? >> >> Valid HTML, maybe (I've not checked). Valid XML, no. >> http://freemind.sourceforge.net/wiki/index.php/File_format > > This should be fixed, then. Thank you. I can confirm the working fix on my GNU/Linux and Win7 Pro. Thank you! -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github