diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2016-10-02 14:19:33 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2016-10-02 14:19:33 +0200 |
commit | bd5f382b05dbf3225d02988149c50c0e6d666170 (patch) | |
tree | e54d8a080dba1a336a04285610be2aaf01a4ff7b | |
parent | 8e597da451cb51dd879350e5ecf2a30b03ba980d (diff) | |
download | eumel-bd5f382b05dbf3225d02988149c50c0e6d666170.tar.gz eumel-bd5f382b05dbf3225d02988149c50c0e6d666170.tar.bz2 eumel-bd5f382b05dbf3225d02988149c50c0e6d666170.zip |
formatRefs: Remove empty parent nodes
-rwxr-xr-x | tools/formatRefs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/formatRefs.py b/tools/formatRefs.py index 303de05..f82705e 100755 --- a/tools/formatRefs.py +++ b/tools/formatRefs.py @@ -122,7 +122,7 @@ if __name__ == '__main__': # where can we find it? (print) # print from root to ref (i.e. magazine, volume, issue) parents = reversed (list (getRecursiveAll (s, g, ref, s.isPartOf))) - where = [formatParent (s, g, p) for p in parents] + where = list (filter (lambda x: x, [formatParent (s, g, p) for p in parents])) thiswhere = formatParent (s, g, ref, False) if thiswhere: where.append (thiswhere) |