From: "Eric Schulte" <schulte.eric@gmail.com>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: problem with mime conversion for emails
Date: Sun, 29 Aug 2010 14:52:10 -0600 [thread overview]
Message-ID: <87zkw5jg5h.fsf@gmail.com> (raw)
In-Reply-To: <87hbiddw4m.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Sun, 29 Aug 2010 21:03:37 +0100")
Hi Eric,
An easy fix may be using the `org-mime-html-hook' to post-process the
html, the following (untested) should be sufficient.
--8<---------------cut here---------------start------------->8---
(add-hook 'org-mime-html-hook
(lambda ()
(replace-regexp
(regexp-quote "<span style=\"visibility:hidden;\">X</span>")
" ")))
--8<---------------cut here---------------end--------------->8---
To me, this seems easier than having an email-specific export target.
Best -- Eric
Eric S Fraga <ucecesf@ucl.ac.uk> writes:
> Hello,
>
> I am hoping somebody can suggest a workaround for a simple problem
> with org-mime. Specifically, I am in charge of a project in which I
> need to email around a to do list with checkboxes. I have been using
> PDF export for this and this works perfectly fine. However, given the
> existence of org-mime, I thought this would remove a step from those
> reading my emails.
>
> The problem is that the HTML conversion for checkbox lists uses the
> construct
>
> : <span style="visibility:hidden;">X</span>
>
> (generated on line 1765 of org-html.el) to fill in the checkboxes for
> items *not* done. Unfortunately, the visibility attribute is ignored
> by some email readers, with /Gmail/ being one of the prominent guilty
> ones. This makes my todo lists look like everything is already done
> and we can all go home early! How I wish this were true... ;-)
>
> The whole reason for the use of the visibility attribute, I assume, is
> to line entries up.
>
> I am happy to do some post-processing on the HTML output but I think a
> better solution may be to do this export differently. Does anybody
> have any suggestions? Would replacing the X in the above with
> be good enough?
>
> Thanks,
> eric
next prev parent reply other threads:[~2010-08-29 20:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-29 20:03 problem with mime conversion for emails Eric S Fraga
2010-08-29 20:52 ` Eric Schulte [this message]
2010-08-30 13:05 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zkw5jg5h.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.