iainbrighton / PScribo

PowerShell documentation framework
MIT License
232 stars 35 forks source link

Skip adding numbers in TOC for a text output #20

Closed it-praktyk closed 8 years ago

it-praktyk commented 8 years ago

Is it possible to skip adding numbers for items in output to text ?

On the screenshot below you can find doubled numbers for Format-Pester

2016-07-26 00_15_19-c__users_wojtek_desktop_20160725 txt - notepad

Test based on the content of demo folder in main Format-Pester repo, generated by dev branch of my fork.

iainbrighton commented 8 years ago

Hi @it-praktyk - that doesn't look right! Are you adding adding/generating numbers on the headings? Does HTML output give you the same output?

it-praktyk commented 8 years ago

Yes, I'm adding numbers to TOC in a code.

The screenshot from the HTML

2016-07-25 23_34_43-20160725

For text format numbers are added in the lines 97-102 of the file OutText.Internal.ps1

iainbrighton commented 8 years ago

@it-praktyk Looking at the code, there is no check for the -EnableSectionNumbering option in the OutText.Internal.ps1 file. The HTML equivalent of the missing check can be found here.

It's a bug and obviously missing from the tests :-1:. I'll get it fixed unless you've already done it/started it? Thanks for reporting!

it-praktyk commented 8 years ago

I didn't start correcting yet. Feel free to do it ;-)

iainbrighton commented 8 years ago

@it-praktyk Hopefully the new v0.7.12 release should resolve your issue. Can you test and reopen if it doesn't? Thanks :smiley:

it-praktyk commented 8 years ago

Now is fine. Thanks pscribo-0 7 12 47-text