<!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>> WWN 214 contains some sample code and in my browser I see:</FONT>
<BR><FONT SIZE=2>> There are two things that are wrong:</FONT>
<BR><FONT SIZE=2>> * The #include statements are incomplete. That's because the HTML looks</FONT>
<BR><FONT SIZE=2>> like this:</FONT>
</P>
<P><FONT SIZE=2>Yeah, that's just a problem with the server side stuff. Newman -</FONT>
<BR><FONT SIZE=2>do you happen to know why? Seems like an XML parser thing.</FONT>
</P>
<P><FONT SIZE=2>> '<br></br>' results in two line feeds eventhough that may be a bug in</FONT>
</P>
<P><FONT SIZE=2>There should not be a <br></br>... the real tag is <br /> which is</FONT>
<BR><FONT SIZE=2>both XML and HTML compliant. <pre> is an evil tag if you use CSS,</FONT>
<BR><FONT SIZE=2>it should never be used on WineHQ. </FONT>
</P>
<P><FONT SIZE=2>This does bring up a good point, <code> displays weird on WineHQ,</FONT>
<BR><FONT SIZE=2>compare it to how Zack does it:</FONT>
<BR><FONT SIZE=2> <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. There should be and maybe it</FONT>
<BR><FONT SIZE=2>should look something like: { margin-bottom: 3px; margin-top: 3px } </FONT>
<BR><FONT SIZE=2>Likewise, I tend to use <ul> for doing indenting and it needs to</FONT>
<BR><FONT SIZE=2>have less whitespace above and below. Or, maybe <dl> could be</FONT>
<BR><FONT SIZE=2>changed and I can abuse that instead.</FONT>
<BR><FONT SIZE=2> </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 <br /> tags in a few places. 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. 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. 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>