emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* html export of src: extra newlines
@ 2009-07-14 17:24 Bill White
  2009-07-14 18:24 ` Dan Davison
  0 siblings, 1 reply; 3+ messages in thread
From: Bill White @ 2009-07-14 17:24 UTC (permalink / raw)
  To: emacs-orgmode

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:

,----
| <pre class="src src-mma">
| <span style="color: #0000ff;">absoluteFromGregorian</span>[{year_Integer, month_Integer, day_Integer}] :=
|   DateDifference[epoch, {year, month, day}]
| 
| 
| 
| <span style="color: #0000ff;">gregorianFromAbsolute</span>[abs_Integer] := 
|   DatePlus[epoch, abs]
| </pre>
`----

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."

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-14 18:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-14 17:24 html export of src: extra newlines Bill White
2009-07-14 18:24 ` Dan Davison
2009-07-14 18:47   ` Bill White

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).