Skip to content

Commit

Permalink
fix needed for proper version awareness
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Apr 1, 2019
1 parent 34b71a3 commit 4f2d8e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions foliatools/foliacat.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def foliacat(id, outputfile, *files, keepversion=True):
if keepversion:
if folia.checkversion(inputdoc.version, outputdoc.version) > 0:
outputdoc.version = inputdoc.version
outputdoc.FOLIA2 = folia.checkversion(outputdoc.version, "2.0.0") >= 0
outputdoc.FOLIA1 = folia.checkversion(outputdoc.version, "2.0.0") < 0

print("(concatenating document)",file=sys.stderr)

for annotationtype,set in inputdoc.annotations:
Expand Down

0 comments on commit 4f2d8e8

Please sign in to comment.