Found bug in ConvertTo-EnhancedHTMLFragment -PostContent

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 3 years ago.

  • Author
    Posts
  • #14468
    Profile photo of Nick
    Nick
    Participant

    Found bug in ConvertTo-EnhancedHTMLFragment -PostContent

    -PostContent data is passed to $fragment.

    Line 898: $fragment = "$fragment`n$PostContent"

    $fragment is not passed into $out. $out is returned as output. Thus PostContent is not included in output.

    Fix:

    Line 898: $out += "`n$PostContent"

    Thanks for the great resources you provide. Keep up the good work.

  • #14470
    Profile photo of Don Jones
    Don Jones
    Keymaster

    I'll get that in the morning. Thank you!

You must be logged in to reply to this topic.