Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed problem with -cout handling of input #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

svallebro
Copy link

fixes #21

@@ -22,7 +22,7 @@ static void Main(string[] args)
var inReader = options.ConsoleIn
? Console.In
: new StreamReader(options.InputFile);
using (var outWriter = options.ConsoleIn
using (var outWriter = options.ConsoleOut
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, oops. Shows how I never tested this part.

@@ -84,8 +84,7 @@ public static string ToMarkDown(this XNode node, string assemblyName = null)


if (node.NodeType == XmlNodeType.Text)
return Regex.Replace(((XText)node).Value.Replace('\n', ' '), @"\s+", " ");

return Regex.Replace(((XText)node).Value.Replace(@" ", ""), @"^\n|[S*|\n]$","",RegexOptions.Multiline);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Crud. I see your PR is based on the other PR. We'll have to resolve that first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem with command argument handling --cout
2 participants