This commit is contained in:
Kenneth Skovhede
2013-04-09 21:43:39 +02:00
parent a2df8ccd4f
commit 58f9ee9582
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -357,6 +357,7 @@ namespace Duplicati.CommandLine
private static void PrintFormatted(IEnumerable<string> lines)
{
int windowWidth = Math.Max(12, Console.WindowWidth == 0 ? 80 : Console.WindowWidth);
foreach (string s in lines)
{
if (string.IsNullOrEmpty(s) || s.Trim().Length == 0)
@@ -378,7 +379,7 @@ namespace Duplicati.CommandLine
while (c.Length > 0)
{
int len = Math.Min(Console.WindowWidth - 2, leadingSpaces.Length + c.Length);
int len = Math.Min(windowWidth - 2, leadingSpaces.Length + c.Length);
len -= leadingSpaces.Length;
if (len < c.Length)
{
+2 -1
View File
@@ -747,6 +747,7 @@ namespace Duplicati.CommandLine
lines.Add("");
}
int windowWidth = Math.Max(12, Console.WindowWidth == 0 ? 80 : Console.WindowWidth);
foreach (string s in lines)
{
if (string.IsNullOrEmpty(s))
@@ -766,7 +767,7 @@ namespace Duplicati.CommandLine
while (c.Length > 0)
{
int len = Math.Min(Console.WindowWidth - 2, leadingSpaces.Length + c.Length);
int len = Math.Min(windowWidth - 2, leadingSpaces.Length + c.Length);
len -= leadingSpaces.Length;
if (len < c.Length)
{