Skip to content

Commit 61f0a91

Browse files
committed
Support \include
1 parent a98726f commit 61f0a91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def get_keys(filename, import_base=None):
4646
for key in cites:
4747
keys |= set(key.split(","))
4848

49-
# find inputs and recursively parse them
50-
inputs = re.findall("\\\\input\\{([^\\}]+)\\}", content)
49+
# find inputs/include and recursively parse them
50+
inputs = re.findall("\\\\(?:input|include)\\{([^\\}]+)\\}", content)
5151
for f in inputs:
5252
if import_base is not None:
5353
f = os.path.join(import_base, f)

0 commit comments

Comments
 (0)