Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

ConvertFrom-TextTable -Skip parameter #38

@ThomasNieto

Description

@ThomasNieto

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.

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.4

Version

0.5.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions