Closed it-praktyk closed 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?
Yes, I'm adding numbers to TOC in a code.
The screenshot from the HTML
For text format numbers are added in the lines 97-102 of the file OutText.Internal.ps1
@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!
I didn't start correcting yet. Feel free to do it ;-)
@it-praktyk Hopefully the new v0.7.12 release should resolve your issue. Can you test and reopen if it doesn't? Thanks :smiley:
Now is fine. Thanks
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
Test based on the content of demo folder in main Format-Pester repo, generated by dev branch of my fork.