From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Kline Subject: Included org-mode files not exported properly Date: Thu, 06 Aug 2009 21:41:06 -0400 Message-ID: <1249609266.4935.16.camel@hp-laptop> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZESE-0002Di-Bn for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 21:41:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZESA-0002DE-Px for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 21:41:10 -0400 Received: from [199.232.76.173] (port=42386 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZESA-0002Cu-Lq for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 21:41:06 -0400 Received: from rksystems.com ([66.92.147.60]:48130) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZESA-0007t2-AQ for emacs-orgmode@gnu.org; Thu, 06 Aug 2009 21:41:06 -0400 Received: from [192.168.0.100] (dsl092-147-116.wdc2.dsl.speakeasy.net [66.92.147.116]) by rksystems.com (Postfix) with ESMTP id DD8AB31B8AC for ; Thu, 6 Aug 2009 21:41:03 -0400 (EDT) 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: emacs-orgmode@gnu.org According to the docs [1] for Include files, if you omit the optional second and third parameters, "the text will be assumed to be in Org mode format and will be processed normally." However, it does not appear that the structure of the included content is recognized by org mode, which dumps the headers for the sections of the included file into a single paragraph, with some random commas injected. Here's a repro case: $ cat repro.org * Intro Blah blah * Data Structures #+INCLUDE: "common.org" * Algorithms More blah $ cat common.org ** Tables foo bar ** Views blech ** Stored Procedures - one - two Here's a link to the resulting HTML: http://www.rksystems.com/org-include-repro.html Here's what the interesting segment of the HTML source looks like (the results of org-export-as-html):

,** Tables foo bar ,** Views blech ,** Stored Procedures

  • one
  • two
Is this a known bug? I can reproduce this behavior on a number of versions of org-mode, including the latest released version (6.29c). [1] http://orgmode.org/manual/Include-files.html -- Bob Kline