Revert "ignore indented comments too"
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 1 Oct 2023 09:40:34 +0000 (10:40 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 1 Oct 2023 09:40:34 +0000 (10:40 +0100)
This reverts commit 60f9f523f78cae9e357b61e6bc55ca1b323dfa14.

src/openpower/decoder/pseudo/pagereader.py

index e6875769be5e5f216262dd6e5b97d4ff00dd3ac0..5cab669cc4be7afad1cecef0ffc15f1ad0206854 100644 (file)
@@ -361,7 +361,7 @@ class ISA:
                     li = f.readlines()
                 for i, l in enumerate(li):
                     l = l.rstrip()
-                    if l.strip().startswith("<!--"):
+                    if l.startswith("<!--"):
                         l = ""
                     elif l != "":
                         assert l.startswith("    "), \