Apache OpenOffice (AOO) Bugzilla – Issue 95073
Extension Help should ignore starting spaces in help.tree file
Last modified: 2009-07-12 19:08:24 UTC
When you add indentation with spaces in the xml file help.tree the resulting help displays a tree with spaces before each topic. These spaces before a text shoud be ignored. The spec for extension help provides an example of such space indentation. See here, topic : Another Page. <?xml version="1.0" encoding="UTF-8"?> <tree_view version="24-Aug-2004"> <help_section application="fooextension" id="foo01" title="Foo Extension"> <node id="foo0101" title="All Pages"> <topic id="fooextension/com.foocorp.foo-ext/page1.xhp">Page 1</topic> <topic id="fooextension/com.foocorp.foo-ext/page2.xhp">Page 2</topic> <topic id="fooextension/com.foocorp.foo-ext/subfolder/anotherpage.xhp"> Another Page</topic> </node> <node id="foo0102" title="Only Page 1 and Page 2"> <topic id="fooextension/com.foocorp.foo-ext/page1.xhp">Page 1</topic> <topic id="fooextension/com.foocorp.foo-ext/page2.xhp">Page 2</topic> </node> <node id="foo0103" title="Only another page"> <topic id="fooextension/com.foocorp.foo-ext/subfolder/anotherpage.xhp"> Another Page</topic> </node> <node id="foo0104" title="Some links to the installed help"> <topic id="swriter/text/swriter/main0000.xhp"> Welcome to the %PRODUCTNAME Writer Help</topic> <topic id="scalc/text/scalc/main0000.xhp"> Welcome to the %PRODUCTNAME Calc Help</topic> <topic id="sbasic/text/sbasic/shared/main0601.xhp"> %PRODUCTNAME Basic Help</topic> </node> </help_section> </tree_view>
reassign
To AB, can you please have a look? Thanks.
.
For tree files in extension help the same mechanism is used as for tree files in the OOo built it help, so this is no extension help specific problem. I will have a look. STARTED
The problem is that the example in the spec is misleading. The line break and the leading spaces were only inserted for formatting rea- sons in the spec document. I corrected this in revision 1.6 of the spec document and added a corresponding comment. It makes no sense to change the behavior concerning leading spaces. This is the XML parser's default behavior and it works according to the XML specification. Besides this we don't really have any problem here besides the misleading example. If someone doesn't want spaces in front of the text, he just shouldn't put any spaces there. -> WONTFIX
wontfix -> closed