switch to DILLO_HTML_PARSE_MODE_PRE depending on style
Hi, I'm experimenting with attached patch to make switching to DILLO_HTML_PARSE_MODE_PRE from CSS possible. Some online source browsers like cgit (http://hjemli.net/git/cgit/) use this to display sources or diffs. Please comment. Cheers, Johannes
On Thu, Jan 22, 2009 at 02:39:32PM +0100, Hofmann Johannes wrote:
Hi,
I'm experimenting with attached patch to make switching to DILLO_HTML_PARSE_MODE_PRE from CSS possible. Some online source browsers like cgit (http://hjemli.net/git/cgit/) use this to display sources or diffs.
Please comment.
Considering the current length of the Html_process_tag function, and that the proposed patch may have secondary effects if a tag with automatic close sets PRE, I'd suggest something along the lines of the attached patch. If it passes your tests, feel free to commit. -- Cheers Jorge.-
On Sun, Jan 25, 2009 at 06:10:33PM -0300, Jorge Arellano Cid wrote:
On Thu, Jan 22, 2009 at 02:39:32PM +0100, Hofmann Johannes wrote:
Hi,
I'm experimenting with attached patch to make switching to DILLO_HTML_PARSE_MODE_PRE from CSS possible. Some online source browsers like cgit (http://hjemli.net/git/cgit/) use this to display sources or diffs.
Please comment.
Considering the current length of the Html_process_tag function, and that the proposed patch may have secondary effects if a tag with automatic close sets PRE, I'd suggest something along the lines of the attached patch. If it passes your tests, feel free to commit.
Committed in two steps. Thanks, Johannes
participants (2)
-
jcid@dillo.org
-
Johannes.Hofmann@gmx.de