Skip to content

Commit

Permalink
dviasm.py: preserve original id byte (prepare for nptex)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminophen committed Aug 23, 2023
1 parent 09e1d66 commit 7e109a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dviasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Copyright (C) 2007-2008 by Jin-Hwan Cho <[email protected]>
# Copyright (C) 2011-2017 by Khaled Hosny <[email protected]>
# Copyright (C) 2019 by Arthur Reutenauer <[email protected]>
# Copyright (C) 2019-2022 by Hironobu Yamashita <[email protected]>
# Copyright (C) 2019-2023 by Hironobu Yamashita <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -315,8 +315,7 @@ def ProcessPreamble(self, fp):
id = GetByte(fp)
if not ValidID(id):
warning("ID byte is %d; use the default %d!" % (id, DVI_ID))
else:
self.id = id
self.id = id
numerator = SignedQuad(fp)
if numerator <= 0:
warning('numerator is %d; use the default 25400000!' % numerator)
Expand Down

0 comments on commit 7e109a6

Please sign in to comment.