September 17th, 2004


userinfo senji
2004/09/17 18:29:00 - On indentation...
I've just been adding indentation to the HTML output by my lj style Grail. "Why?" I hear you ask. Because it helps to debug it, and indeed it does; I've already found one missing </div> and one missing </td>.

There's something particularly visually pleasing about:
          <img style="margin-left: 10%" src="http:
         </p>
        </td>
       </tr>
      </table>
     </td>
    </tr>

    <tr>
     <td valign="bottom" align="right">
      <table width="176" class="standard" cellpadd
       <tr valign="top">
        <td align="left">
         <p>
          &gt; <a href="http://www.livejournal.com
          <a href="#top">&gt; go to top</a><br />
         </p>
        </td>
       </tr>
      </table>
     </td>
    </tr>
   </table>
  </div>
 </body>
</html>

Still, it's about home time; even if the weather does look grim outside. I'll just fix those two bugs, then bug out of here...
Current Mood: [mood icon] geeky

< | 3 glosses | comment | > )

userinfo ewx
[userpic]
2004/09/17 14:42:24
Indentation rules enable pattern recognition; they allow you to actively improve code, they aren't just pretty.
reply | thread )
userinfo senji
[userpic]
2004/09/17 14:44:33
I don't think I've ever dealt with anything quite as indented as this HTML; and the more indentation you have; the more you seem to need it. I'm now surprised I ever managed to find any bugs in it!
reply | parent | thread )
userinfo hoiho
2004/09/17 17:40:31
thread )

< | 3 glosses | comment | > )

On indentation... - Squaring the circle...

> log in
> recent entries
> fiends
> archive
> toothywiki page
> profile
> new entry
> recent comments


> go to top