From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: [PATCH] ox-odt; make author and date lines optional Date: Tue, 7 Jul 2015 17:55:34 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=20cf307cfd3cf74f29051a5014a4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCaq2-0004Zd-KP for emacs-orgmode@gnu.org; Tue, 07 Jul 2015 17:55:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCaq1-0004YS-3x for emacs-orgmode@gnu.org; Tue, 07 Jul 2015 17:55:38 -0400 Received: from mail-vn0-x230.google.com ([2607:f8b0:400c:c0f::230]:34610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCaq0-0004Y8-To for emacs-orgmode@gnu.org; Tue, 07 Jul 2015 17:55:37 -0400 Received: by vnbf7 with SMTP id f7so22415985vnb.1 for ; Tue, 07 Jul 2015 14:55:35 -0700 (PDT) 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: Org Mode --20cf307cfd3cf74f29051a5014a4 Content-Type: multipart/alternative; boundary=20cf307cfd3cf74f22051a5014a2 --20cf307cfd3cf74f22051a5014a2 Content-Type: text/plain; charset=UTF-8 Hi, The simple attached patch adds 2 defcustoms to org-odt, allowing the author and date lines to be suppressed in the exported file. I have wnated this for a really long time, so submitting to the group in cas other people also want it. I would have liked to add this as an option but don't know how! Thanks, Matt --20cf307cfd3cf74f22051a5014a2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

The simple attached patch = adds 2 defcustoms to org-odt, allowing the author and date lines to be supp= ressed in the exported file.=C2=A0 I have wnated this for a really long tim= e, so submitting to the group in cas other people also want it.=C2=A0
<= br>
I would have liked to add this as an option but don't know how= !=C2=A0 Thanks,
Matt


--20cf307cfd3cf74f22051a5014a2-- --20cf307cfd3cf74f29051a5014a4 Content-Type: text/x-patch; charset=US-ASCII; name="0001-Make-date-and-author-lines-optional.patch" Content-Disposition: attachment; filename="0001-Make-date-and-author-lines-optional.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ibtvbetp0 RnJvbSBhMTg3MTZlMjZkYjgxMzcyYWY0N2M1N2FkM2JkZjA1YTY0OGM4OGQyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNYXR0IFByaWNlIDxtYXR0LnByaWNlQHV0b3JvbnRvLmNhPgpE YXRlOiBUdWUsIDcgSnVsIDIwMTUgMTc6MzA6NTggLTA0MDAKU3ViamVjdDogW1BBVENIXSBNYWtl IGRhdGUgYW5kIGF1dGhvciBsaW5lcyBvcHRpb25hbC4KCiogb3gtb2R0LmVsIChvcmctb2R0LXBy aW50LWF1dGhvci1saW5lLCBvcmctb2R0LXByaW50LWRhdGUtbGluZSkKCkFkZHMgZGVmY3VzdG9t cyBvcmctb2R0LXByaW50LWF1dGhvci1saW5lIGFuZApvcmctb2R0LXByaW50LWRhdGUtbGluZSwg d2hpY2gsIHdoZW4gbm9uLW5pbCwKc3VwcHJlc3MgdGhlc2UgZWxlbWVudHMgaW4gdGhlIGZpbmFs IGV4cG9ydGVkIG9kdC4KLS0tCiBsaXNwL294LW9kdC5lbCB8IDkzICsrKysrKysrKysrKysrKysr KysrKysrKysrKysrKysrKysrLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KIDEgZmlsZSBjaGFuZ2Vk LCA1NyBpbnNlcnRpb25zKCspLCAzNiBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9saXNwL294 LW9kdC5lbCBiL2xpc3Avb3gtb2R0LmVsCmluZGV4IDE2M2Y1ODAuLjE3MzljOTYgMTAwNjQ0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