From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Underline ONLY the first character of a word? Date: Wed, 24 Aug 2011 20:26:38 -0400 Message-ID: <8267.1314231998@alphaville.americas.hpqcorp.net> References: <1314217012.11609.YahooMailNeo@web161910.mail.bf1.yahoo.com> <7670.1314228499@alphaville.americas.hpqcorp.net> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwNmL-0005IN-3y for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 20:26:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwNmJ-0001RL-Oq for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 20:26:41 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:43809 helo=g1u1820.austin.hp.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwNmJ-0001RG-HH for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 20:26:39 -0400 In-Reply-To: Message from Nick Dokos of "Wed\, 24 Aug 2011 19\:28\:19 EDT." <7670.1314228499@alphaville.americas.hpqcorp.net> 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: Michael Hannon Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Here is an amusing aside[fn:1]. Take the org file I posted previously: --8<---------------cut here---------------start------------->8--- * Table :noexport: #+TBLNAME: actions | abbrev | action | |--------+-----------------| | a | actionable | | b | bibulous | | c | califragilistic | #+begin_src python :results output :exports none :var table=3Dactions print "* Results" print "#+begin_html" for row in table: print "%s %s%s
" % (row[0], row[1][0:1], row[1][1:= ]) =20=20 print "#+end_html" #+end_src --8<---------------cut here---------------end--------------->8--- If I export this to html, I get nothing in the body because of the :noexpor= t: tag. But if I evaluate the source block: --8<---------------cut here---------------start------------->8--- * Table = :noexport: #+TBLNAME: actions | abbrev | action | |--------+-----------------| | a | actionable | | b | bibulous | | c | califragilistic | #+begin_src python :results output :exports none :var table=3Dactions print "* Results" print "#+begin_html" for row in table: print "%s %s%s
" % (row[0], row[1][0:1], row[1][1:]) =20=20 print "#+end_html" =20=20 #+end_src #+results: #+begin_example * Results #+begin_html a actionable
b bibulous
c califragilistic
#+end_html #+end_example --8<---------------cut here---------------end--------------->8--- and then export (*without* the manual excision of the #+{begin,end}_example= ), I get: --8<---------------cut here---------------start------------->8---

1 Results

a actionable
b bibulous
c califragilistic
--8<---------------cut here---------------end--------------->8--- which surprised me: the "* Results" line is interpreted as a new headline during export, despite the fact that it appears within an example block (that's probably a consequence of the ordering of actions in org-export-preprocess-string [fn:2]): the noexport tag strips everything to the "* Results" line, which I guess is surprising at first but makes se= nse, and the #+end_example line is silently discarded). Oh, no! Look what I've done: Andr=C3=A1s will now insist that the whole thi= ng has to be either documented completely or thrown out bodily :-) With-tongue-firmly-in-cheek-ly yours, Nick Footnotes: [fn:1] For some value of "amusing". [fn:2] See somewhere in this thread: http://thread.gmane.org/gmane.emacs.or= gmode/46021.