Skip to content

Commit

Permalink
chore (log): replace tabs with spaces
Browse files Browse the repository at this point in the history
The formatting of tabs is different depending on what application you view it in
  • Loading branch information
dylan-george-field committed Aug 24, 2023
1 parent dd4253a commit eb32009
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/wfh-log-wpf/Entity/LogEntryPretty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ public class LogEntryPretty
public LogEntryPretty(LogEntry entry)
{
Time = entry.Time;
IsWorkingFromHome = "\t" + entry.IsWorkingFromHome.ToString();
ConnectedNetwork = "\t\t\t" + entry.ConnectedNetwork.ToString();
IsWorkingFromHome = " " + entry.IsWorkingFromHome;
ConnectedNetwork = entry.IsWorkingFromHome
? " " + entry.ConnectedNetwork.ToString()
: " " + entry.ConnectedNetwork.ToString();
}
}
}
2 changes: 1 addition & 1 deletion src/wfh-log-wpf/Logger/LogReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public LogReader()
using (var writer = new StreamWriter(AbsoluteFilePath))
using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture))
{
writer.WriteLine("Time\t\t\tIsWorkingFromHome\tNetwork");
writer.WriteLine("Time IsWorkingFromHome Network");
}
}
else
Expand Down

0 comments on commit eb32009

Please sign in to comment.