From: Waylan L. <wa...@gm...> - 2008-11-10 16:23:02
|
On Mon, Nov 10, 2008 at 10:34 AM, John Szakmeister <jo...@sz...> wrote: [snip] > > I understand. Thanks for clearing that up. It's also weird that the > space before the hash gets inserted into the HTML, rather than > stripped. I'm not sure why that was happening. > Well, I didn't write that code, but I suppose it's because whitespace at the beginning of a line can be significant, so the parser is careful to not strip any whitespace. Of course, once we get to the paragraph processing code, that is no longer an issue, so we could strip is there. However, then we only want to lstrip, so that we don't strip manual line breaks (two spaces at end of line). Seeing whitespace is insignificant in html, I'm guessing the thinking was it's easier to leave whitespace alone. But, yeah, I probably would have cleaned up that whitespace myself. -- ---- Waylan Limberg wa...@gm... |