From c00a2181a91ba824ab53ba906d38decf1aaa4269 Mon Sep 17 00:00:00 2001 From: Balloonicorn Jones Date: Fri, 6 Sep 2024 15:11:39 -0400 Subject: [PATCH] Add Comments --- CodeJam4/Program.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CodeJam4/Program.cs b/CodeJam4/Program.cs index 765db50..b517e16 100644 --- a/CodeJam4/Program.cs +++ b/CodeJam4/Program.cs @@ -63,7 +63,8 @@ public static void PrintContent(HtmlDocument doc) //Getting Content from each subheading. - if (subTitleContentNodes != null) + if (subTitleContentNodes != null) // Some of the headlines that contains apostrophes show an error in the middle of the word (ex. "What's the most valuable NFL franchise?" + // Finding a way to be able to show the apostrophe properly should be an easy fix { foreach (var subTitleContentNode in subTitleContentNodes) { @@ -88,7 +89,8 @@ public static void PrintContent(HtmlDocument doc) for (int i = 0; i < subTitles.Count; i++) { - Console.ForegroundColor = ConsoleColor.Green; + // for some of the articles, the contents don't show past the article title, might have to be reviewed with more test cases to see why that is + Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine(subTitles[i], Color.Aquamarine); // prints the subtitle Console.ResetColor(); List contents = subTitleContents[i]; @@ -120,7 +122,7 @@ static void Main(string[] args) if (ans.Equals('Y')) { vrajMode = true; - System.Console.BackgroundColor = ConsoleColor.Red; + System.Console.BackgroundColor = ConsoleColor.Red; } Colorful.Console.WriteLine("Enter the url of a NBC live coverage news article that you want to create an outline of:", Color.Fuchsia);