From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Fwd: Question: how to disable htmlize during exporting? Date: Tue, 25 Mar 2014 11:37:47 -0400 Message-ID: <0cff8b6ef93ec2d99c7e2f38097a7b9e@mail.rickster.com> References: <87lhvyelbo.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_6be181e6be443ce5bed10888af9746df" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSTRP-0004rk-Ut for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 11:39:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSTQB-0004zO-Fr for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 11:37:52 -0400 Received: from mail.rickster.com ([204.62.15.78]:36900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSTQB-0004xx-CK for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 11:37:47 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kelvin Hu Cc: emacs-orgmode@gnu.org --=_6be181e6be443ce5bed10888af9746df Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8; format=flowed On 2014-03-25 08:29, Kelvin Hu wrote: > 2014-03-25 16:25 GMT+08:00 Bastien : > > I'd try to set `org-html-htmlize-output-type' to nil but I didn't > test. If it does not work, this is a bug. > > Thanks for your reply, I have tried this approach, but it reports > "error: (void function nil)". > Per the definition in `ox-html.el', it must be either 'inline-css or > 'css. > But it's an excellent idea. I have a patch to ox-html which will allow ox-htmlize-output type to be set to `nil', to explicitly return plain text. I will push it to master tonight when i get out from behind the firewall... rick P.S. Attached for review... --=_6be181e6be443ce5bed10888af9746df Content-Transfer-Encoding: base64 Content-Type: text/x-lisp; name=0001-Allow-disabling-of-htmlization-in-ox-html-export.patch Content-Disposition: attachment; filename=0001-Allow-disabling-of-htmlization-in-ox-html-export.patch; size=2327 RnJvbSBiNDlmYThiMzZiOTgzZjMyY2E5ZmYwOTBlZWMwYmU3ZmY0NWE1MGMzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBSaWNrIEZyYW5rZWwgPHJpY2tAcmlja3N0ZXIuY29tPgpEYXRl OiBUdWUsIDI1IE1hciAyMDE0IDExOjI3OjA3IC0wNDAwClN1YmplY3Q6IFtQQVRDSF0gQWxsb3cg ZGlzYWJsaW5nIG9mIGh0bWxpemF0aW9uIGluIG94LWh0bWwgZXhwb3J0LgoKKiBsaXNwL294LWh0 bWwuZWwgKG9yZy1odG1sLWh0bWxpemUtb3V0cHV0LXR5cGUpOiBBZGQgYG5pbCcKICBvcHRpb24g KG5vIGh0bWxpemF0aW9uKS4KKG9yZy1odG1sLWZvbnRpZnktY29kZSk6IFJldHVybiBwbGFpbiB0 ZXh0IGlmCmBvcmctaHRtbC1odG1saXplLW91dHB1dC10eXBlJyBpcyBgbmlsJy4KLS0tCiBsaXNw L294LWh0bWwuZWwgfCAxMyArKysrKysrKystLS0tCiAxIGZpbGUgY2hhbmdlZCwgOSBpbnNlcnRp b25zKCspLCA0IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2xpc3Avb3gtaHRtbC5lbCBiL2xp c3Avb3gtaHRtbC5lbAppbmRleCA1Mjc5NWEzLi5hODQzNDQxIDEwMDY0NAotLS0gYS9saXNwL294 LWh0bWwuZWwKKysrIGIvbGlzcC9veC1odG1sLmVsCkBAIC03NTYsOSArNzU2LDEwIEBAIGxpbmsn cyBwYXRoLiIKIAogKGRlZmN1c3RvbSBvcmctaHRtbC1odG1saXplLW91dHB1dC10eXBlICdpbmxp bmUtY3NzCiAgICJPdXR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