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.
Summary: | [60cat] context.xml not properly reformatted | ||
---|---|---|---|
Product: | xml | Reporter: | tomzi <tomzi> |
Component: | Text-Edit | Assignee: | Samaresh Panda <samaresh> |
Status: | RESOLVED INCOMPLETE | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 137768, 126040 | ||
Bug Blocks: |
Description
tomzi
2007-11-21 13:22:33 UTC
With RC1, first format, formats properly (except the </Context> tag) with all lines within the 80 column boundary. A second format brings the </Context> tag to the right position. Would you try a RC candidate (RC2 is available now) and let us know? Well, I see. In the current implementation an exisiting line is just indented. But it does not split a line that is eg 250characters long, when the right border is set to, say 100. So if I had something like: <mytag attr1="value1" attr2="value2" attr3="value3" attr4="value4" attr5="value5" attr6="value6"/> it is currently reformated to <mytag attr1="value1" attr2="value2" attr3="value3" attr4="value4" /> however, if right border is set to 25, it should be reformatted to: <mytag attr1="value1" attr2="value2" attr3="value3" attr4="value4" /> (oops forgot to delete attr5 and attr6, sorry for that,they should of course not be deleted :)) I'm not sure if there is a good solution to this issue. Seems like a chicken-egg problem. The fact that XMLs can be deeply nested makes it impossible to honor the col boundary while honoring the indentation at the same time. We may be able to handle it for this use-case, but no matter what we do, there will always be some use-case where it'll not satisfy the conditions. I would like to hear what you think. Thoughts, comments? |