emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Hrvoje Niksic <hniksic@xemacs.org>
To: Roland Kaufmann <roland.kaufmann@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Markup on same line as text
Date: Sun, 20 Feb 2011 00:49:14 +0100	[thread overview]
Message-ID: <87oc674mbp.fsf@xemacs.org> (raw)
In-Reply-To: <4D5FD32E.5000204@gmail.com> (Roland Kaufmann's message of "Sat, 19 Feb 2011 15:26:54 +0100")

Roland Kaufmann <roland.kaufmann@gmail.com> writes:

>> htmlize doesn't operate on the level of syntax-based fontification, it
>> examines the display-related properties attached to buffer text (not
>> necessarily by font-lock) and renders them into the corresponding HTML.
>
> Good point.
>
> And, as you point out, it is probably better to deal with the problem
> by removing the formatting on the newlines (probably right after
> font-lock-fontify-buffer in org-export-format-source-code-or-example)
> in the temporary buffer that is htmlize'd, reducing the chance of any
> unintended consequences.

Yes, tweaking the properties seems preferable to tweaking htmlize itself
for this particular case.

In the future I'd like htmlize to be more extensible about converting
buffer contents to HTML.  Currently it only examines the `face' and
`invisible' properties that Emacs itself uses for display.  But
additional properties could be defined, which htmlize would use to
discern hyperlinks, or to add line highlight markup, to override choice
of style sheet, etc.

> I'll try this approach and see how it turns out (i.e. proposal for
> change in htmlize dropped). Thank you for the feedback!

Thanks for sticking with this.  Please let me know how it works for you.

  reply	other threads:[~2011-02-19 23:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-06 22:12 [PATCH] Markup on same line as text Roland Kaufmann
2011-02-16 20:04 ` Hrvoje Niksic
2011-02-16 21:53   ` Roland Kaufmann
2011-02-17 21:58 ` Hrvoje Niksic
2011-02-19 14:26   ` Roland Kaufmann
2011-02-19 23:49     ` Hrvoje Niksic [this message]
2011-02-26  9:39     ` Bastien
2011-02-27 21:09       ` Roland Kaufmann

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oc674mbp.fsf@xemacs.org \
    --to=hniksic@xemacs.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=roland.kaufmann@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).