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?

2 comments
Comment actions Permalink

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
Comment actions Permalink

Oh, yes, that's it! Thanks!

0

Please sign in to leave a comment.