Ascii art in javadoc

When I make ascii art in javadoc, and then do "reformat code", it ruins the ascii art. Is ascii art in javadoc not a good practice?

0
Avatar
Permanently deleted user

It's not a good idea to perform ascii painting at html at all because html-compatible agent is not required to preserve custom indentations and line feeds.

However, there is a way to rescue - <pre> tag.

I.e. you can surround your drawing with <pre></pre> and IDEA formatter will preserve it.

Regards, Denis

0
Avatar
Permanently deleted user

Oh, yes, that's it! Thanks!

0

请先登录再写评论。