From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [ANN] Editable HTML export of Org-mode files Date: Sun, 28 Oct 2012 09:19:44 -0600 Message-ID: <87625utyi7.fsf@gmail.com> References: <87pq6ua0kk.fsf@gmx.com> <50843E8D.4010305@gmx.de> <877gqitf70.fsf@gmx.com> <50883F59.10907@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSUeT-0000lg-HR for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 11:19:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSUeR-0001j1-P4 for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 11:19:49 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:63293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSUeR-0001ip-K1 for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 11:19:47 -0400 Received: by mail-ie0-f169.google.com with SMTP id 10so6918472ied.0 for ; Sun, 28 Oct 2012 08:19:47 -0700 (PDT) In-Reply-To: <50883F59.10907@gmx.de> (Simon Thum's message of "Wed, 24 Oct 2012 21:19:53 +0200") 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: Simon Thum Cc: emacs-orgmode@gnu.org Simon Thum writes: > On 10/22/2012 10:38 PM, Eric Schulte wrote: >> Simon Thum writes: >> --8<---------------cut here---------------start------------->8--- >> foo bar >> >> >> >> >> >> --8<---------------cut here---------------end--------------->8--- >> >> all of the spaces and newlines are inserted into the Org-mode file. >> However, when that Org-mode file is re-exported, it uses the normal html >> exporter (which *does* ignore whitespace by default). >> >> So, if you are not having the spaces inserted into your Org-mode file >> that is a problem with org-ehtml, but if you *are* having the spaces >> appear in your .org file (server-side), but they are not appearing in >> the exported HTML, that is expected behavior. > > I meant when editing in the HTML page via the server > call-back. Changing the WS means all lines change, regardless of > whether I edited them. From your description I assume the edit box > content comes out of the export, too? I guess that needs to change for > this to work reliably. > Yes, the content of the edit boxes does come from the exported html. For each portion of the Org-mode document (as delimited by org-elements), both the raw Org-mode text and the HTML are exported side-by-side, then the raw Org-mode text is hidden and the HTML is displayed, until the [edit] button is pushed at which point JavaScript is used to hide the HTML and to expose the raw Org-mode text in an edit box. When edits are committed they are committed one portion (edit-box) at a time. Does this make sense? Why would something need to change for "this" to be reliable? Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte