PlatyPS: Insert blank line into multi-line text field

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Greg Tate Greg Tate 2 months ago.

  • Author
    Posts
  • #62421
    Profile photo of Greg Tate
    Greg Tate
    Participant

    Started using PlatyPS, https://github.com/PowerShell/platyPS, to separate help content from source code and notice that blank lines get stripped when using New-ExternalHelp to convert the markdown files to an XML-based help file. Have any of you figured out a way to create blank lines in the multi-line text field?

    For example, I'd like to insert a blank line between lines two and three below:

    OUTPUTS
        A PSCustomObject with the type name CSEQLDevice.
            TypeName: CSEQLDevice
    
            Name         MemberType   Definition
            ----         ----------   ----------
            Equals       Method       bool Equals(System.Object obj) GetHashCode  Method       int GetHashCode()
            GetType      Method       type GetType()
            ToString     Method       string ToString()
            Family       NoteProperty string Family=PS6500
            FreeSpaceGB  NoteProperty int FreeSpaceGB=5249
            GroupName    NoteProperty string GroupName=CATHQEQLGRP
            Name         NoteProperty string Name=CATHQEQL01
            TotalSpaceGB NoteProperty int TotalSpaceGB=32448
    

    But no matter what I do in the markdown files — I can insert a bunch of new lines, even some using Shift and a space key, but the blank lines just get stripped.

    ## OUTPUTS
    
    ### A PSCustomObject with the type name CSEQLDevice.
    
    
    
    
    
       TypeName: CSEQLDevice
    
    Name         MemberType   Definition                    
    ----         ----------   ----------                    
    Equals       Method       bool Equals(System.Object obj)
    GetHashCode  Method       int GetHashCode()             
    GetType      Method       type GetType()                
    ToString     Method       string ToString()             
    Family       NoteProperty string Family=PS6500          
    FreeSpaceGB  NoteProperty int FreeSpaceGB=5249          
    GroupName    NoteProperty string GroupName=CATHQEQLGRP  
    Name         NoteProperty string Name=CATHQEQL01        
    TotalSpaceGB NoteProperty int TotalSpaceGB=32448
    

You must be logged in to reply to this topic.