Auto-format of code containing long URLs in comments results in "Link specified as plain text" warning
Answered
I've got some Javadoc comments that contain long URLs wrapped as links, but when I reformat the code using Ctrl+Alt+L, it breaks the links across multiple lines so that they can't be identified as links and I get the "Link specified as plain text" warning.
e.g.
/**
* <a href="https://something-with-a-long-url.com/this+is+an+extremely+long+link+that+will+get+broken+when+the+code+is+auto+formatted">a long link</a>
*/
is changed by auto-formatting, to:
/**
* <a
* href="https://something-with-a-long-url.com/this+is+an+extremely+long+link+that+will+get+broken+when+the+code+is+auto+formatted">a
* long link</a>
*/
and that's not recognised as a hyperlinked URL, so I get the warning.
Is there something I can do to fix that, or is that worth a bug report?
Please sign in to leave a comment.
Hi Richard,
Thanks for taking the time to report this. Looks like it is a bug after all.
It was reported here: https://youtrack.jetbrains.com/issue/IDEA-290417
Feel free to upvote the issue and subscribe to updates on the progress.
Thanks @...