From 7e109a6d5601c633ee17b34f6df613759f8c1f84 Mon Sep 17 00:00:00 2001 From: Hironobu Yamashita Date: Wed, 23 Aug 2023 21:44:39 +0900 Subject: [PATCH] dviasm.py: preserve original id byte (prepare for nptex) --- dviasm.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dviasm.py b/dviasm.py index a9eb062..0bd887d 100755 --- a/dviasm.py +++ b/dviasm.py @@ -6,7 +6,7 @@ # Copyright (C) 2007-2008 by Jin-Hwan Cho # Copyright (C) 2011-2017 by Khaled Hosny # Copyright (C) 2019 by Arthur Reutenauer -# Copyright (C) 2019-2022 by Hironobu Yamashita +# Copyright (C) 2019-2023 by Hironobu Yamashita # # 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 @@ -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)