[Orgmode] html export of src: extra newlines
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 . bi...@wolfram.com . http://members.wolfram.com/billw "No ma'am, we're musicians." ___ 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
Re: [Orgmode] html export of src: extra newlines
Bill White writes: > 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 tried exporting this fragment using C-c C-e h, and could not replicate this (org and html below). Maybe it would be revealing to try exporting the org buffer directly using C-c C-e h (org-export-as-html), and seeing if the problem occurs then with your setup? Dan Details --- I downloaded mma-mode just now from http://www.itwm.fhg.de/as/asemployees/wichmann/mma.html is that the same as yours? ,[ C-h v mma-version RET ] | mma-version is a variable defined in `mma.el'. | Its value is "$Revision: 1.1 $" | | Documentation: | The Revision number of mma.el. | You should add this number when reporting bugs. | | [back] ` Here's my org --8<---cut here---start->8--- #+title: mathematica example * here's the block #+begin_src mma absoluteFromGregorian[{year_Integer, month_Integer, day_Integer}] := DateDifference[epoch, {year, month, day}] gregorianFromAbsolute[abs_Integer] := DatePlus[epoch, abs] #+end_src and that was it --8<---cut here---end--->8--- and here's the relevant bit of the html I got --8<---cut here---start->8--- absoluteFromGregorian[{year_Integer, month_Integer, day_Integer}] := DateDifference[epoch, {year, month, day}] gregorianFromAbsolute[abs_Integer] := DatePlus[epoch, abs] --8<---cut here---end--->8--- > > 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 ___ 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
Re: [Orgmode] html export of src: extra newlines
On Tue Jul 14 2009 at 13:24, Dan Davison wrote: > Bill White writes: > >> 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. Argh! I just now updated my org-mode and emacs, and all is well - whatever caused the problem, it's gone now: http://members.wolfram.com/billw/RomanCalendar.html Next time, I'll be sure to try the latest version first. Thanks for taking a look - bw > replicate this (org and html below). Maybe it would be revealing to > try exporting the org buffer directly using C-c C-e h > (org-export-as-html), and seeing if the problem occurs then with your > setup? > > Dan > > Details > --- > I downloaded mma-mode just now from > > http://www.itwm.fhg.de/as/asemployees/wichmann/mma.html > > is that the same as yours? > > ,[ C-h v mma-version RET ] > | mma-version is a variable defined in `mma.el'. > | Its value is "$Revision: 1.1 $" > | > | Documentation: > | The Revision number of mma.el. > | You should add this number when reporting bugs. > | > | [back] > ` Cheers - bw -- Bill White . bi...@wolfram.com . http://members.wolfram.com/billw "No ma'am, we're musicians." ___ 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