ID 487789 - Block commenting with Ctrl+/ parses incorrectly when used in the Script Editor.

Follow

Problem summary
Block commenting with Ctrl+/ parses incorrectly when used in the Script Editor.

Customer reported version
nuke.n/a

Customer reported platform

Steps to reproduce
1) In Nuke, open the Script Editor and added multiple lines with pound/hash symbols. Example:

do_stuff()  # comment on what this does# this is a comment#### Also a comment (this has multiple hashes)run_checks()
2) Select the text in the Script Editor and press Ctrl+/ on the keyboard to comment-out the lines.

Expected behavior
The hash symbol should be placed/removed only once for the leading character, and not remove any pre-existing comments per block.

Actual behavior
Lines with multiple hashes are removing every leading pound/hash symbol per line, and also adding/removing hashes when there shouldn't be, which is causing errors in scripts.

Workaround
There is no available workaround at this time.

Reproduced by Support in:
Nuke 13.0v4 - Windows 10, macOS 10.14
Nuke 13.0v3 - Windows 10
Nuke 12.2v8 - Windows 10
Nuke 12.2v7 - Windows 10, macOS 10.14

Unable to reproduce bug in:
Nuke 13.0v2 - Windows 10, macOS 10.14
Nuke 12.2v6 - Windows 10, macOS 10.14

Earliest version tested
Nuke 12.2v6/13.0v2 - This issue doesn't appear in this version and has regressed
 

    We're sorry to hear that

    Please tell us why