Skip to content

<summary> parsing by DragonFruit doesn't understand <para> #415

Closed

Description

@drewnoakes

I'd like a line break in the help text produced from <summary> docs.

It seems that line breaks are ignored (understandably). Adding <para> elements doesn't help (in fact, it removed whitespace between paragraphs).

Perhaps a separate issue, but it'd be nice to use the <summary> section for the brief description, and the <remarks> section for more detailed information.

Activity

  1. added
    enhancement
    good first issue
    on Feb 21, 2019
  2. jeredm commented on Mar 4, 2019

    @jeredm
    Contributor

    @jonsequitur I am wondering if we want Description in Symbol to be more complex object than a string. Changing to a complex object could have a large impact on unit tests. The help process assigns the XML document text to Description. Description is cleaned of new lines and whitespace and is finally split into lines to fit the screen. A more complex object would allow us to store lines of descriptions intentionally and <remarks>.

    Another option would be to keep the <para> and <remarks> tags in the description and parse them out when the description is printed.

  3. danalexandrunicoara commented on Oct 11, 2021

    @danalexandrunicoara

    Hi @drewnoakes .

    Have a look over this screenshot

    image

    It seems that the para tag inside the summary tag is not ignored. Is this the intended behavior you wanted?

  4. AnvarKhatik commented on Sep 22, 2022

    @AnvarKhatik

    Can I Resolve This Issue & Can U Help Me With Start It ?..

  5. danalexandrunicoara commented on Sep 27, 2022

    @danalexandrunicoara

    Can I Resolve This Issue & Can U Help Me With Start It ?..

    I don't have any updates on this. Feel free to work on it and see if it reproduces.

  6. fontanaricardo commented on Oct 19, 2022

    @fontanaricardo

    How about implement the same behavior of intelissense?

    /// <summary>
    /// First paragraph.
    /// Second paragraph.
    /// <para>Third paragraph.</para>
    /// <para>Fourth paragraph.</para>
    /// Fifty paragraph.
    /// </summary>

    Will generate:

    First paragraph. Second paragraph.
    
    Third paragraph.
    
    Fourth paragraph.
    
    Fifty paragraph.
    

    Commands with bad format like bellow will be ignorated and prints an warning like CS1570.

    /// <summary>
    /// First paragraph.<para>
    /// </summary>
  7. ranma42 commented on Mar 12, 2023

    @ranma42

    IIUC according to #2008 (comment) this issue can be closed.

  8. KalleOlaviNiemitalo commented on Mar 12, 2023

    @KalleOlaviNiemitalo

    Presumably fixed with #1604 which was released in v2.0.0-beta3.22114.1.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-DragonFruitArea-Helpenhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions