mirror of
https://github.com/sbrl/PolyFeed.git
synced 2024-11-21 06:22:59 +00:00
Tidy up Console.WriteLines
This commit is contained in:
parent
39a068d14b
commit
cb4e730f98
1 changed files with 3 additions and 1 deletions
|
@ -15,10 +15,12 @@ namespace PolyFeed.Helpers
|
||||||
if (selectedNode == null)
|
if (selectedNode == null)
|
||||||
throw new ApplicationException($"Error: Selector {settings.Selector} failed to find any elements.");
|
throw new ApplicationException($"Error: Selector {settings.Selector} failed to find any elements.");
|
||||||
|
|
||||||
|
// Hack: Add physical newlines to <br />s to make date parsing easier for LastUpdated / Published.
|
||||||
|
// Also means that we match Firefox functionality.
|
||||||
foreach (HtmlNode nextNode in htmlNode.QuerySelectorAll("br")) {
|
foreach (HtmlNode nextNode in htmlNode.QuerySelectorAll("br")) {
|
||||||
nextNode.InnerHtml = "\n";
|
nextNode.InnerHtml = "\n";
|
||||||
}
|
}
|
||||||
Console.WriteLine("InnerText: {0}", selectedNode.InnerText);
|
|
||||||
if (string.IsNullOrWhiteSpace(settings.Attribute))
|
if (string.IsNullOrWhiteSpace(settings.Attribute))
|
||||||
return selectedNode.InnerText;
|
return selectedNode.InnerText;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue