Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-469

Tag <pre> become invalid after formatting in JavaDoc

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 9.0
    • None
    • None
    • Product Version = Apache NetBeans IDE Dev (Build incubator-netbeans-release-205-on-20180202)
      Operating System = Linux version 4.9.0-6-amd64 running on amd64
      Java; VM; Vendor = 1.8.0_151
      Runtime = OpenJDK 64-Bit Server VM 25.151-b12

    Description

      Let's have the following JavaDoc for a class:

      /**
        * Description.
        * <p>
        * <pre>
        * sample code
        * </pre>
        */
      

      After formatting the source with Alt-Shift-F, the <pre> tag become invalid:

      /**
        * Description.
        * <p>
        * <
        * pre>
        * sample code
        * </pre>
        */

      Not only <pre> is no longer recognized tag, but subsequent formatting with Alt-Shift-F breaks indentation in the sample code.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jherkel Jakub Herkel
            okulev Ognyan Kulev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment