diff --git a/netwerk/cache/src/nsDiskCacheDevice.cpp b/netwerk/cache/src/nsDiskCacheDevice.cpp
index 4a68a7ff3ba..e5311646b7f 100644
--- a/netwerk/cache/src/nsDiskCacheDevice.cpp
+++ b/netwerk/cache/src/nsDiskCacheDevice.cpp
@@ -199,9 +199,7 @@ NS_IMETHODIMP nsDiskCacheDeviceInfo::GetUsageReport(char ** usageReport)
NS_ENSURE_ARG_POINTER(usageReport);
nsCString buffer;
- buffer.Assign("
\n");
-
- buffer.Append("Cache Directory: | ");
+ buffer.Append("\n\nCache Directory: | \n ");
nsCOMPtr cacheDir;
nsAutoString path;
mDevice->getCacheDirectory(getter_AddRefs(cacheDir));
@@ -211,9 +209,8 @@ NS_IMETHODIMP nsDiskCacheDeviceInfo::GetUsageReport(char ** usageReport)
} else {
buffer.Append("directory unavailable");
}
- buffer.Append(" | ");
+ buffer.Append(" | \n
\n");
// buffer.Append("Files: | XXX |
");
- buffer.Append("
");
*usageReport = ToNewCString(buffer);
if (!*usageReport) return NS_ERROR_OUT_OF_MEMORY;
diff --git a/netwerk/cache/src/nsMemoryCacheDevice.cpp b/netwerk/cache/src/nsMemoryCacheDevice.cpp
index 0eb5671d509..2f7de628f40 100644
--- a/netwerk/cache/src/nsMemoryCacheDevice.cpp
+++ b/netwerk/cache/src/nsMemoryCacheDevice.cpp
@@ -522,12 +522,10 @@ nsMemoryCacheDeviceInfo::GetUsageReport(char ** result)
NS_ENSURE_ARG_POINTER(result);
nsCString buffer;
- buffer.Assign("\n");
- buffer.Append("Inactive Storage: | ");
+ buffer.Append("\n\nInactive Storage: | \n ");
buffer.AppendInt(mDevice->mInactiveSize / 1024);
- buffer.Append(" k | \n");
- buffer.Append(" |
\n");
-
+ buffer.Append(" k\n\n");
+
*result = ToNewCString(buffer);
if (!*result) return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
diff --git a/netwerk/protocol/about/src/nsAboutCache.cpp b/netwerk/protocol/about/src/nsAboutCache.cpp
index 41e9cf73151..b13b722a800 100644
--- a/netwerk/protocol/about/src/nsAboutCache.cpp
+++ b/netwerk/protocol/about/src/nsAboutCache.cpp
@@ -198,11 +198,9 @@ nsAboutCache::VisitDevice(const char *deviceID,
mBuffer.AppendInt(value/1024);
mBuffer.Append(" k\n\n");
- mBuffer.Append("\n");
-
deviceInfo->GetUsageReport(getter_Copies(str));
mBuffer.Append(str);
- mBuffer.Append("\n
");
+ mBuffer.Append("\n\n
");
if (mDeviceID.IsEmpty()) {
mBuffer.Append("\n