9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] small htmlfmt patch
@ 2003-08-14 15:22 Micah Stetson
  0 siblings, 0 replies; only message in thread
From: Micah Stetson @ 2003-08-14 15:22 UTC (permalink / raw)
  To: 9fans

This change to /sys/src/cmd/htmlfmt/html.c makes htmlfmt
handle <pre> correctly.

diff html.c.old html.c
211c211,214
< 			renderrunes(t, it->s);
---
> 			if (it->state & IFwrap)
> 				renderrunes(t, it->s);
> 			else
> 				emitword(t, it->s, runestrlen(it->s));

Micah



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-14 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-14 15:22 [9fans] small htmlfmt patch Micah Stetson

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 NNTP newsgroup(s).