From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill White Subject: html export of src: extra newlines Date: Tue, 14 Jul 2009 12:24:31 -0500 Message-ID: <87vdlv5ga8.fsf@wolfram.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQlkG-0004u0-AY for emacs-orgmode@gnu.org; Tue, 14 Jul 2009 13:24:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQlkB-0004qS-ID for emacs-orgmode@gnu.org; Tue, 14 Jul 2009 13:24:47 -0400 Received: from [199.232.76.173] (port=60057 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQlkB-0004qO-Bq for emacs-orgmode@gnu.org; Tue, 14 Jul 2009 13:24:43 -0400 Received: from webmail.wolfram.com ([140.177.205.37]:40136) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MQlkA-00061r-9a for emacs-orgmode@gnu.org; Tue, 14 Jul 2009 13:24:42 -0400 Received: from billw-desktop.wolfram.com (vpnclient14.wolfram.com [140.177.99.14]) (authenticated bits=0) by webmail.wolfram.com (8.13.7/8.13.7) with ESMTP id n6EHP3GZ017595 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 14 Jul 2009 12:25:03 -0500 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 Org seems to insert extra newlines when exporting src to html. You can see the output at http://members.wolfram.com/billw/RomanCalendar.html (search for gregorianFromAbsolute) - there's a large amount of vertical space between the two function definitions. Is there some way to avoid exporting all those newlines? - GNU Emacs 23.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.16.1) of 2009-05-28 on billw-desktop - Org-mode version 6.27trans Here's the relevant part of my .org file: ,---- | #+begin_src mma | absoluteFromGregorian[{year_Integer, month_Integer, day_Integer}] := | DateDifference[epoch, {year, month, day}] | | gregorianFromAbsolute[abs_Integer] := | DatePlus[epoch, abs] | #+end_src `---- I export the whole project via 'C-c C-e P' - here's the generated html: ,---- |
| absoluteFromGregorian[{year_Integer, month_Integer, day_Integer}] :=
|   DateDifference[epoch, {year, month, day}]
| 
| 
| 
| gregorianFromAbsolute[abs_Integer] := 
|   DatePlus[epoch, abs]
| 
`---- Here's the relevant part of org-publish-project-alist: ,---- | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ("members.wolfram.com-org-notes" | :base-directory "~/org/members.wolfram.com" | :base-extension "org" | :publishing-directory "~/org/000-published/members.wolfram.com/" | :recursive t | :publishing-function org-publish-org-to-html | :headline-levels 4 ; Just the default for this project. | :auto-preamble t | ) | ("members.wolfram.com-org-static" | :base-directory "~/org/members.wolfram.com" | :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" | :publishing-directory "~/org/000-published/members.wolfram.com/" | :recursive t | :publishing-function org-publish-attachment) | ("members.wolfram.com" :components ("members.wolfram.com-org-notes" "members.wolfram.com-org-static")) | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; `---- Thanks! bw -- Bill White . billw@wolfram.com . http://members.wolfram.com/billw "No ma'am, we're musicians."