From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Levin Du" Subject: Re: Org mode release 6.04 Date: Wed, 28 May 2008 14:34:33 +0800 Message-ID: <9649271a0805272334x6eef7f73j383bba0d595ae1b3@mail.gmail.com> References: <9649271a0805272101r193c5713of86e13d4726dd0f@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1688508793==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K1FFB-0007Ec-GK for emacs-orgmode@gnu.org; Wed, 28 May 2008 02:34:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K1FF9-0007EQ-32 for emacs-orgmode@gnu.org; Wed, 28 May 2008 02:34:40 -0400 Received: from [199.232.76.173] (port=42583 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1FF8-0007EN-U1 for emacs-orgmode@gnu.org; Wed, 28 May 2008 02:34:38 -0400 Received: from mx20.gnu.org ([199.232.41.8]:55866) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K1FF8-0003Ja-CH for emacs-orgmode@gnu.org; Wed, 28 May 2008 02:34:38 -0400 Received: from ti-out-0910.google.com ([209.85.142.188]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K1FF7-0000wI-Bq for emacs-orgmode@gnu.org; Wed, 28 May 2008 02:34:37 -0400 Received: by ti-out-0910.google.com with SMTP id u5so3128570tia.10 for ; Tue, 27 May 2008 23:34:33 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Org-mode Mode --===============1688508793== Content-Type: multipart/alternative; boundary="----=_Part_15783_15951346.1211956473796" ------=_Part_15783_15951346.1211956473796 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2008/5/28 Carsten Dominik : > Fixed thanks. > > I cannot make an error message when you have misspelled a tag, because Org > cannot know > if you have inserted that string on purpose. > > But the loop is fixed now, and I am using now contents instead of content. > > - Carsten Thank you for your quick response and fix. I confirmed that's OK now. And I thought I have fixed a little bug in org-export-as-html. See this test file: --8<----8<-- #+TITLE: this is the title * title1 * title2 good day --8<----8<-- There's no empty line or others contents after ... block. After export (C-c C-e , the closing tag is missing: --8<-----8<---

2 title2

  good day

--8<----8<--- Here's the patch: diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 4637e8e..461ec3d 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -2666,7 +2666,7 @@ lang=\"%s\" xml:lang=\"%s\"> (setq infixed t) (insert "
\n"))
     (insert (org-html-protect (match-string 1 line)) "\n")
-    (when (and lines
+    (when (or (null lines)
        (not (string-match "^[ \t]*\\(:.*\\)"
   (car lines))))
       (setq infixed nil)

- Levin

------=_Part_15783_15951346.1211956473796
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

2008/5/28 Carsten Dominik <c.dominik@uva.nl>:
Fixed thanks.

I cannot make an error message when you have misspelled a tag, because Org cannot know
if you have inserted that string on purpose.

But the loop is fixed now, and I am using now contents instead of content.

- Carsten
 
Thank you for your quick response and fix. I confirmed that's OK now.

And I thought I have fixed a little bug in org-export-as-html. 
See this test file:
--8<----8<--
#+TITLE: this is the title
<content>
* title1
* title2
<example>
good day
</example>
--8<----8<--

There's no empty line or others contents after <example>...</example> block.
After export (C-c C-e , the </pre> closing tag is missing:
--8<-----8<---
<div id="outline-container-2" class="outline-2">
<h2 id="sec-2">2 title2</h2>
<div id="text-2">

<p><pre>
  good day
</p></div>
</div>
--8<----8<---

Here's the patch:
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 4637e8e..461ec3d 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2666,7 +2666,7 @@ lang=\"%s\" xml:lang=\"%s\">
       (setq infixed t)
       (insert "<pre>\n"))
     (insert (org-html-protect (match-string 1 line)) "\n")
-    (when (and lines
+    (when (or (null lines)
        (not (string-match "^[ \t]*\\(:.*\\)"
   (car lines))))
       (setq infixed nil)

- Levin

------=_Part_15783_15951346.1211956473796-- --===============1688508793== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1688508793==--