Skip to content

Tweak help formatting script to be more StrictMode tolerant - #10563

Merged
Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:masterfrom
jazzdelightsme:user/danthom/HelpFormattingStrictModeTweak
Oct 4, 2019
Merged

Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:masterfrom
jazzdelightsme:user/danthom/HelpFormattingStrictModeTweak

Conversation

@jazzdelightsme

@jazzdelightsme Dan Thompson (jazzdelightsme) commented Sep 17, 2019 •

Copy link
Copy Markdown
Contributor

PR Summary

StrictMode is disabled in at least one other script block in the
help formatting. This change just adds another.

PR Context

Fixes #10562

Turns out that just this one little addition of Set-StrictMode -Off
fixed the errors for my particular case.

(It is possible there are other ways to underspecify MAML, that would
require more, similar changes, but this looks like enough for me for
now.)

PR Checklist

StrictMode is disabled in at least one other script block in the
help formatting. This change just adds another.

Addresses PowerShell#10562

Turns out that just this one little addition of `Set-StrictMode -Off`
fixed the errors for my particular case.

(It is possible there are other ways to underspecify MAML, that would
require more, similar changes, but this looks like enough for me for
now.)
@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) merged commit 5a236f7 into PowerShell:master Oct 4, 2019
@adityapatwardhan Aditya Patwardhan (adityapatwardhan) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Oct 4, 2019
@jazzdelightsme
Dan Thompson (jazzdelightsme) deleted the user/danthom/HelpFormattingStrictModeTweak branch October 4, 2019 03:50
@ghost

Copy link
Copy Markdown

🎉v7.0.0-preview.5 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Help output formatting is not tolerant of StrictMode

3 participants