<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Re: Problem with code in WWN 214</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=2>&gt; WWN 214 contains some sample code and in my browser I see:</FONT>
<BR><FONT SIZE=2>&gt; There are two things that are wrong:</FONT>
<BR><FONT SIZE=2>&gt; * The #include statements are incomplete. That's because the HTML looks</FONT>
<BR><FONT SIZE=2>&gt; like this:</FONT>
</P>

<P><FONT SIZE=2>Yeah, that's just a problem with the server side stuff.&nbsp; Newman -</FONT>
<BR><FONT SIZE=2>do you happen to know why?&nbsp; Seems like an XML parser thing.</FONT>
</P>

<P><FONT SIZE=2>&gt; '&lt;br&gt;&lt;/br&gt;' results in two line feeds eventhough that may be a bug in</FONT>
</P>

<P><FONT SIZE=2>There should not be a &lt;br&gt;&lt;/br&gt;... the real tag is &lt;br /&gt; which is</FONT>
<BR><FONT SIZE=2>both XML and HTML compliant.&nbsp; &lt;pre&gt; is an evil tag if you use CSS,</FONT>
<BR><FONT SIZE=2>it should never be used on WineHQ.&nbsp; </FONT>
</P>

<P><FONT SIZE=2>This does bring up a good point, &lt;code&gt; displays weird on WineHQ,</FONT>
<BR><FONT SIZE=2>compare it to how Zack does it:</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp; <A HREF="http://www.kerneltraffic.org/wine/wn20040312_214.html" TARGET="_blank">http://www.kerneltraffic.org/wine/wn20040312_214.html</A></FONT>
</P>

<P><FONT SIZE=2>I think the problem is for two reasons:</FONT>
</P>

<P><FONT SIZE=2>1) There's no CSS definition for BR.&nbsp; There should be and maybe it</FONT>
<BR><FONT SIZE=2>should look something like:&nbsp; { margin-bottom: 3px; margin-top: 3px } </FONT>
<BR><FONT SIZE=2>Likewise, I tend to use &lt;ul&gt; for doing indenting and it needs to</FONT>
<BR><FONT SIZE=2>have less whitespace above and below.&nbsp; Or, maybe &lt;dl&gt; could be</FONT>
<BR><FONT SIZE=2>changed and I can abuse that instead.</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>2) That particular instance has some markup problems, I put in a</FONT>
<BR><FONT SIZE=2>couple of extra &lt;br /&gt; tags in a few places.&nbsp; Corollary to Linus'</FONT>
<BR><FONT SIZE=2>feelings on backups: Proofreading is for wimps. Real men publish</FONT>
<BR><FONT SIZE=2>their writing to a news site and have everyone else spellcheck it.</FONT>
</P>

<P><FONT SIZE=2>(Although, you'll notice since Newman set me up with CVS acces I</FONT>
<BR><FONT SIZE=2>do tend to do a quick once over after committing it and then fix</FONT>
<BR><FONT SIZE=2>obvious mistakes.&nbsp; If you have any scripts that automate this I </FONT>
<BR><FONT SIZE=2>should be able to easily automate it into the existing publishing</FONT>
<BR><FONT SIZE=2>system I have.&nbsp; XML doesn't lend itself to spellchecking too easily,</FONT>
<BR><FONT SIZE=2>so I've never pursued it.)</FONT>
</P>

<P><FONT SIZE=2>---------------</FONT>
<BR><FONT SIZE=2>Brian Vincent</FONT>
<BR><FONT SIZE=2>Copper Mountain Telecom</FONT>
<BR><FONT SIZE=2>vincentb@coppercolorado.com</FONT>
</P>

</BODY>
</HTML>