diff options
-rwxr-xr-x | doc/doxygen-link.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/doxygen-link.py b/doc/doxygen-link.py index 2dcd5f0..1f424fc 100755 --- a/doc/doxygen-link.py +++ b/doc/doxygen-link.py @@ -43,4 +43,6 @@ def translate(match): rc = re.compile(r"\b(" + "|".join(map(re.escape, sorted(links, reverse=True))) + r")\b") for line in open(sys.argv[2], "r"): - print(rc.sub(translate, line), end="") + if links: + line = rc.sub(translate, line) + print(line, end="") |