Menu

#586 Ticket's Markdown preview shows long-line code listing incorrectly

unread
None
2017-08-18
2017-07-25
No

This is a minor issue affecting non-critical functionality.

Few weeks ago, I ran into a problem with SourceForge's ticket system when trying to write a ticket reply with large ASCII art diagram- namely a program code with long lines; Markdown preview area will force-wrap the code, resulting in a mangled diagram preview.

This problem affects only preview on both new-ticket form and ticket reply form; the real posted tickets/comments content are not affected.

Exact steps to reproduce:

  • Visit some random SourceForge project's issue tracker.
  • Open one random ticket that allows reply, or select "Create Ticket".
  • Replying to a ticket (or create a ticket) with following message:

    Following is a large ASCII art diagram:
    
        0        1         2         3         4         5         6         7         8         9
        123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    
        +------------------+          +------------------+          +------------------+
        |                  |          |                  |          |                  |
        |     Block 1      |--------->|     Block 2      |--------->|     Block 3      |
        |                  |          |                  |          |                  |
        +------------------+          +------------------+          +------------------+
                 ^                                                            |
                 |                                                            | . . . . . . Flow
                 |                                                            v
        +------------------+          +------------------+          +------------------+
        |                  |          |                  |          |                  |
        |     Block 6      |<---------|     Block 5      |<---------|     Block 4      |
        |                  |          |                  |          |                  |
        +------------------+          +------------------+          +------------------+
    
    End of diagram.
    
  • Don't click "Post" (or "Save") yet.

  • Click the "Toggle Preview" (eye) icon at the top-right of textarea.
  • Preview area will show a jumbled version of ASCII art diagram- which each line wrapped somewhere beyond column 69; see the attached screenshot.
  • Now click "Reply", or "Create Ticket".
  • You will see that the resulting post shows ASCII art diagram correctly- without wrapping.

Please investigate.

1 Attachments

Discussion

  • Brad BizX

    Brad BizX - 2017-08-03
    • assigned_to: Dave Brondsema
     
  • Brad BizX

    Brad BizX - 2017-08-03

    Escalating to development for review.

     
  • Brad BizX

    Brad BizX - 2017-08-18

    Moving ticket to feature requests.

     
  • Brad BizX

    Brad BizX - 2017-08-18

    Ticket moved from /p/forge/site-support/15340/

    Can't be converted:

    • _page:
    • _related:
     

Log in to post a comment.

MongoDB Logo MongoDB