diff www/code.html @ 694:786841fdb1e0

Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring.
author Rob Landley <rob@landley.net>
date Tue, 13 Nov 2012 17:14:08 -0600
parents 43c4f709b9ff
children 27275d0d97e9
line wrap: on
line diff
--- a/www/code.html	Tue Nov 13 16:13:45 2012 -0600
+++ b/www/code.html	Tue Nov 13 17:14:08 2012 -0600
@@ -13,11 +13,8 @@
 more explicit is preferable to being clever enough to outsmart yourself:
 don't be so terse your code is unreadable.</p>
 
-<p>Toybox source is formatted to be read with 4-space tab stops.  Each file
-starts with a special comment telling vi to set the tab stop to 4.  Note that
-one of the bugs in Ubuntu 7.10 broke vi's ability to parse these comments; you
-must either rebuild vim from source, or go ":ts=4" yourself each time you load
-the file.</p>
+<p>Toybox source uses two spaces per indentation level, and wraps at 80
+columns.</p>
 
 <p>Gotos are allowed for error handling, and for breaking out of
 nested loops.  In general, a goto should only jump forward (not back), and
@@ -31,7 +28,7 @@
 <p>Toybox is configured using the Kconfig language pioneered by the Linux
 kernel, and adopted by many other projects (uClibc, OpenEmbedded, etc).
 This generates a ".config" file containing the selected options, which
-controls which features to enable when building toybox.</p>
+controls which features are included when compiling toybox.</p>
 
 <p>Each configuration option has a default value. The defaults indicate the
 "maximum sane configuration", I.E. if the feature defaults to "n" then it