Skip to content

Commit

Permalink
write out complete html
Browse files Browse the repository at this point in the history
  • Loading branch information
pohhsu committed Jul 11, 2023
1 parent c2413c2 commit 5cdb266
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion ams/AssetAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ await MigrateInBatches(assets, filteredList, async assets =>
{
WriteDetails(assetTypes);
}
reportGenerator?.Dispose();

if (_analysisOptions.AnalysisType == AnalysisType.Report)
{
reportGenerator?.WriteTrailer();
reportGenerator?.Dispose();
}
}

private void WriteSummary(Statistics statistics, IDictionary<string, int> assetTypes)
Expand Down
4 changes: 2 additions & 2 deletions ams/ReportGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void WriteHeader()
<head>
<style>
table {
font-family: ""Courier New"", monspaced;
font-family: ""Courier New"", monospace;
}
table, tr, td, th {
border: solid black 2px;
Expand Down Expand Up @@ -56,7 +56,7 @@ public void WriteHeader()
<tbody>");
}

private void WriteTrailer()
public void WriteTrailer()
{
_writer.WriteLine(@"
</tbody>
Expand Down

0 comments on commit 5cdb266

Please sign in to comment.