aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/doc_extract.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/doc_extract.py b/doc/doc_extract.py
index 1ce7dc9..ae44677 100755
--- a/doc/doc_extract.py
+++ b/doc/doc_extract.py
@@ -38,11 +38,9 @@ def extract_docs(filepath):
break
index += 6
- doc_name_end = len(file_content)
- for i, c in enumerate(file_content[index:]):
- if c == ')':
- doc_name_end = index + i
- break
+ doc_name_end = file_content.find(')', index)
+ if doc_name_end == -1:
+ doc_name_end = len(file_content)
doc_name = file_content[index:doc_name_end]
doc_name_end += 1