openSUSE / docmanager

Manage DocBook 5 Meta Information
http://opensuse.github.io/docmanager/index.html
GNU General Public License v3.0
6 stars 6 forks source link

`get`ting an empty property: no information that it is empty #104

Open ghost opened 9 years ago

ghost commented 9 years ago

When getting a property, the docmanager does some curious things: If you have this XML:

<dm:docmanager xmlns:dm="urn:x-suse:ns:docmanager">
    <dm:bugtracker>

    </dm:bugtracker>
 </dm:docmanager>

And ask for that property, you get empty output (except for the newlines):

$ docmanager get -p bugtracker FILE

$

It would be good to have some kind of information that the property is empty, à la:

$ docmanager get -p bugtracker FILE
[empty]
$   
mschnitzer commented 8 years ago

That's not a bug. No output -> Property not found

ghost commented 8 years ago

I still think that is a bug ... currently there is no discernible difference between an empty property and one that was not found.