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 a single property can lead to empty newlines #103

Open ghost opened 9 years ago

ghost commented 9 years ago

When getting a property, the docmanager does some curious things: If the XML contains newlines, it prints them, even if they are empty. E.g. with this XML:

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

      </dm:translation>
    </dm:docmanager>

 Now ask for the `translation` property and you get this:

    $ docmanager get -p translation FILE
    yes

    $