Issue 95073 - Extension Help should ignore starting spaces in help.tree file
Summary: Extension Help should ignore starting spaces in help.tree file
Status: CLOSED WONT_FIX
Alias: None
Product: utilities
Classification: Unclassified
Component: code (show other issues)
Version: OOO300m9
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: OOo 3.1
Assignee: ab
QA Contact: Unknown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 14:46 UTC by bmarcelly
Modified: 2009-07-12 19:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bmarcelly 2008-10-17 14:46:21 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>
Comment 1 Martin Hollmichel 2008-10-21 08:13:05 UTC
reassign
Comment 2 joerg.skottke 2008-10-24 07:14:46 UTC
To AB, can you please have a look? Thanks.
Comment 3 joerg.skottke 2008-10-24 08:10:28 UTC
.
Comment 4 ab 2008-10-24 08:27:59 UTC
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
Comment 5 ab 2008-11-26 11:02:24 UTC
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
Comment 6 Mechtilde 2009-07-12 19:08:24 UTC
wontfix -> closed