This repository was archived by the owner on Mar 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
ConvertFrom-TextTable -Skip parameter #38
Copy link
Copy link
Open
Milestone
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- 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.
TextUtility/src/code/TextTableParser.cs
Lines 102 to 111 in ad78ef8
| if(string.IsNullOrEmpty(_line)) | |
| { | |
| continue; | |
| } | |
| // add the line to the list if we've skipped enough lines | |
| if (SkippedLines++ >= Skip) | |
| { | |
| Lines.Add(_line); | |
| } |
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.4Version
0.5.0
Visuals
No response
Metadata
Metadata
Assignees
Labels
No labels