diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2023-03-22 20:12:33 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2023-03-26 20:09:09 +0200 |
commit | 06a65ea73c62619b77763d3a917f17e2ee31b60f (patch) | |
tree | 63d1cf8e3f697995d687113d93dd0aa5c2e24ba2 /docs | |
parent | 00623a913f290b593006899fab7cf6555519f678 (diff) | |
download | tracker-06a65ea73c62619b77763d3a917f17e2ee31b60f.tar.gz |
docs: Allow consecutive substitution sections
Our helper script to substitute and inline doc sections and
images may choke if multiple {{ }} blocks are found in the
same line. Make it handle this situation in the regexp used.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/libtracker-sparql/embed-files.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/reference/libtracker-sparql/embed-files.py b/docs/reference/libtracker-sparql/embed-files.py index 05354d91d..6e54db350 100644 --- a/docs/reference/libtracker-sparql/embed-files.py +++ b/docs/reference/libtracker-sparql/embed-files.py @@ -8,7 +8,7 @@ f.close() dirname = os.path.dirname(sys.argv[1]) -regex = re.compile('{{(.*)}}') +regex = re.compile('{{([^\}\}]*)}}') matches = regex.findall(content) replacements = {} |