From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Subject: Re: Re: How to customize the org-mode's BEGIN_SRC HTML output Date: Sun, 29 Aug 2010 15:07:11 +0530 Message-ID: References: <87hbijumal.wl%ucecesf@ucl.ac.uk> <871v9mx4me.fsfhello@somewhere.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from [140.186.70.92] (port=44658 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpeKU-0005Df-6R for emacs-orgmode@gnu.org; Sun, 29 Aug 2010 05:37:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OpeKT-0007J5-2I for emacs-orgmode@gnu.org; Sun, 29 Aug 2010 05:37:34 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:36286) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpeKS-0007Ik-Qu for emacs-orgmode@gnu.org; Sun, 29 Aug 2010 05:37:33 -0400 Received: by wyb36 with SMTP id 36so6662396wyb.0 for ; Sun, 29 Aug 2010 02:37:31 -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: emacs-orgmode@gnu.org Cc: Rafael , Benjamin Beckwith On Wed, Aug 25, 2010 at 6:21 PM, Puneeth wrote: >> Oh, and by the way, with Org-mode version 7.01h I concur with Eric in >> that I unfortunately still lose the linebreaks and get LaTeX code >> modified with Benjamin's new version.. > > The line breaks being stripped off is due to code in org2blog. It has > nothing to do with org-mode's export. Wordpress does not ignore > linebreaks in the content, which looks very ugly for normal posts. > Code in org2blog strips off the line breaks from the html generated by > org-export-as-html. It checks for
 and 
tags and > leaves out the newlines within those tags. This is (most) probably > what is causing trouble. > > I'll only be able to look into it in the weekend. Anybody is free to > beat me to that. :) This has been fixed. Thanks to a patch from Benjamin Beckwith. You can now use any WP shortcode blocks in your org2blog posts, without losing line breaks. Also, org2blog now directly posts babel src blocks as WP's sourcecode blocks, without modifying the src blocks in your org file. Just like with Benjamin's hook function, :syntaxhl header option can still be used to pass additional arguments to WP's syntaxhighlighter. Happy Blogging, Puneeth