Community
Participate
Working Groups
Follow-up of bug 102780 which fixed the problem for javadoc comments. We also need to change the formatter to format line and block comments when formatting the compilation unit (e.g. using the K_COMPILATION_UNIT or the K_UNKNOWN format kinds).
Created attachment 96351 [details] Released patch for line comments Note that the activation is similar than for javadoc comments: clients need to set the CodeFormatter.F_LINE_COMMENTS (see bug 102780 for more details).
Created attachment 97185 [details] Released patch for block comments This patch also fixes some big troubles with Javadoc comments formatting released for bug 102780. Now invalid html tags structure, typically unclosed tags, are well taken into account and does not prevent the formatter to process the comment correctly. However, there are still remaining issues. I'm working on them and will close this bug only when the formatter will succeed to format all compilation unit of an Eclipse full source workspace without error (which means no new change on the second formatting...) Note that it also includes fix for bug 228193.
Created attachment 97606 [details] First patch which tunes the implementation
Created attachment 97607 [details] Second patch solving other issues
Forgot to say, that first and second patches were released in HEAD stream...
Created attachment 97693 [details] Third patch solving corner cases in block comments Released in HEAD stream.
Created attachment 97723 [details] Fourth patch solving other corner cases in javadoc and block comments Released in HEAD.
Created attachment 97730 [details] Fifth patch solving issues with inlined tags
Released for 3.4M7 in HEAD stream.
Verified for 3.4M7 using I20080429-0100