Make missing project descriptions an empty file

If a project description is not filled in it should be an empty
file, not a 1 byte file containing only a blank line.

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2009-07-27 09:15:59 -07:00
parent 6a66a63818
commit 920862a423

View File

@@ -128,7 +128,10 @@ public class ProjectAdminServiceImpl extends BaseServiceImplementation
if (f.lock()) {
String d = proj.getDescription();
if (d != null) {
d = d.trim() + "\n";
d = d.trim();
if (d.length() > 0) {
d += "\n";
}
} else {
d = "";
}