This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Just to don't fortet this.... Consider using org.openide.text.IndentEngine instead of current code for templates formatting. Jesse believes that depending on org.netbeans.modules.editor.lib is bad. True is, that current formatting code is rather copy-pasted-adjusted magic than readable code.
Let's say 5.0 and maybe set future later.
I'm not working on APISupport anymore. Reassigning to owner of the component, so the issue is not 'forgotten' forever.
Need to check with editor team to see what the recommended APIs are.
I'm not sure what you need, but I think editor.indent module - Reformat.format(...) - should help.
Whatever you decide to do please do not use IndentEngine. They are generally poor designed and totally wrong for per-project formatting settings. As I said earlier Reformat class from editor.indent is what you should use for formatting documents.
In fact IndentEngine (which apisupport currently uses) is now deprecated.
core-main #e713cd99c3b0
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/e713cd99c3b0 User: Jesse Glick <jglick@netbeans.org> Log: #68324: Use proper indentation API