From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [Bug] MCE for HTML test of export Date: Sat, 19 Mar 2011 12:05:26 +0100 Message-ID: <80lj0bpdzd.fsf@somewhere.org> References: <80aagwl60n.fsf@somewhere.org> <8762rk5lg7.fsf@gmail.com> <80lj0gqboz.fsf@somewhere.org> <87d3lp8ypt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Nicolas, Nicolas wrote: > S=C3=A9bastien Vauban writes: >> Regarding this problem only, it must be an interaction then with my >> following setting for the inline task in HTML: >> >> #+begin_src emacs-lisp >> ;; templates for inline tasks in various exporters >> (setq org-inlinetask-export-templates >> '((html "
%s%s
%s" >> '((unless (eq todo "") >> (format "%s%s= " >> class todo todo priority)) >> heading content)) >> (latex "\\todo[inline]{\\textbf{\\textsf{%s %s}}\\line= break{} %s}" >> '((unless (eq todo "") >> (format "\\textsc{%s%s}" todo priority)) >> heading content)) >> (ascii " -- %s%s%s" >> '((unless (eq todo "") >> (format "%s%s " todo priority)) >> heading >> (unless (eq content "") >> (format "\n =C2=A6 %s" >> (mapconcat 'identity >> (org-split-string conten= t "\n") >> "\n =C2=A6 "))))= ))) >> #+end_src > > Indeed, it came from your templates. To prevent this, I made sure, with t= he > following patch, that CONTENT is always enclosed by newline characters. > Would you mind testing it before I apply it ? Perfect. Works like a charm. Please do apply it... > Also, you may have a look at default templates, as your HTML variant is > slightly wrong (wrt
tag). I'm not sure to understand what's "wrong". You mean the fact I added manual= ly a
tag after the title? If yes, it was to have the "title" line (task subject, with TODO keyword) on its own line, followed by the rest of the entry on subsquent paragraphs. But, indeed (after testing it), it seems I am not (anymore?) forced to inse= rt that. Was it this you were talking about? Thanks for the comment, anyway... and for the patch! Best regards, Seb --=20 S=C3=A9bastien Vauban