From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: a couple of questions about org-mime Date: Sat, 24 Apr 2010 16:43:53 -0600 Message-ID: <8739yk31zq.fsf@gmail.com> References: <87k4rwzhwz.fsf@columbia.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5o4w-0006yA-Vc for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 18:44:03 -0400 Received: from [140.186.70.92] (port=53310 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5o4u-0006xA-IG for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 18:44:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5o4s-0001wJ-Eu for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 18:44:00 -0400 Received: from mail-pz0-f175.google.com ([209.85.222.175]:58883) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5o4s-0001w9-AX for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 18:43:58 -0400 Received: by pzk5 with SMTP id 5so7327527pzk.14 for ; Sat, 24 Apr 2010 15:43:56 -0700 (PDT) In-Reply-To: <87k4rwzhwz.fsf@columbia.edu> (Xiao-Yong Jin's message of "Sat, 24 Apr 2010 16:58:52 -0400") 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 --=-=-= Hi, Xiao-Yong Jin writes: > Hi, > > I'm using org-mode from git repository at commit > > ,---- > | commit 830e0cfe407b42060c3adc490baa7c3104589435 > | Author: Carsten Dominik > | Date: Thu Apr 22 18:04:13 2010 +0200 > `---- > > I have 2 questions regarding `org-mime-htmlize'. > > 1. How do I quote verbatim code? > > BEGIN_SRC/END_SRC or BEGIN_EXAMPLE/END_EXAMPLE do not do > what I wanted. They follow all the mark-up changes, > which are not desirable. The only way I found is using > `=', which is not convenient for multi-line code. > I'm not sure what you mean here. This should work exactly as does exporting from an org-mode file, so for example exporting the following begin/end_example block with `org-mime-htmlize' (which I've done) wraps the results in a
 and does not perform any markup (not gnus does
some markup like bolding and underlining on it's own, following rules
similar to the org markup).


--=-=-=
Content-Type: multipart/alternative; boundary="==-=-="

--==-=-=

#+begin_example
some stuff here, *not bold*, /not italicized/, etc...

preserve
  line
  breaks
like in code
#+end_example

--==-=-=
Content-Type: text/html

some stuff here, *not bold*, /not italicized/, etc...

preserve
  line
  breaks
like in code
--==-=-=-- --=-=-= If you have another example which demonstrates your problem please share. > > 2. Why all the
? > > With mono-spaced fonts in text/plain, line break looks > nice. But I don't think those line-breaks need to be > preserved even after export to html. > Use the following to change this behavior (setq org-mime-preserve-breaks nil) Perhaps this should be the default setting. I currently have this set to true because quoted mail (i.e. lines starting with ">") can look very bad with line wrapping. > > Thanks for the good work though. Thanks -- Eric --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--