Mercurial > projects > dil
diff trunk/src/docgen/misc/textutils.d @ 470:e48a011e687a
Initial plain text output support.
author | Jari-Matti M?kel? <jmjm@iki.fi> |
---|---|
date | Wed, 31 Oct 2007 23:03:56 +0200 |
parents | e562d455cbbe |
children |
line wrap: on
line diff
--- a/trunk/src/docgen/misc/textutils.d Wed Oct 31 21:42:33 2007 +0200 +++ b/trunk/src/docgen/misc/textutils.d Wed Oct 31 23:03:56 2007 +0200 @@ -24,7 +24,7 @@ char[] plainTextHeading(char[] s) { char[] line; line.length = 80; - line[] = "="; + line[] = '='; return s ~ \n ~ line[0..s.length].dup ~ \n ~ \n; } @@ -32,7 +32,7 @@ char[] plainTextHorizLine(int l = 80) { char[] line; line.length = 80; - line[] = "-"; + line[] = '-'; return line[0..l].dup ~ \n; }