TextUtility icon indicating copy to clipboard operation
TextUtility copied to clipboard

ConvertFrom-TextTable -Skip parameter

Open ThomasNieto opened this issue 2 years ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest version
  • [X] Search the existing issues.

Steps to reproduce

There is some confusing behavior where Skip does not skip the number of lines but rather the number of non-empty lines.

https://github.com/PowerShell/TextUtility/blob/ad78ef8f1416d7b1cdd93a4cf1eb2f4d1d27aa7e/src/code/TextTableParser.cs#L102-L111

Expected behavior

Skip should match the number of input object lines.

Actual behavior

Skip only matches on non-blank lines creating a disconnect between input and what is being processed.

Error details

No response

Environment data

7.4

Version

0.5.0

Visuals

No response

ThomasNieto avatar Jul 25 '23 20:07 ThomasNieto