mirror of
https://github.com/ParticulateFlow/lammps-doc-utils.git
synced 2025-12-08 06:47:45 +00:00
Correct off-by-one error in line number reported
This commit is contained in:
@ -36,9 +36,9 @@ def main():
|
|||||||
if m:
|
if m:
|
||||||
label = m.group(1)
|
label = m.group(1)
|
||||||
if label in anchors:
|
if label in anchors:
|
||||||
anchors[label].append((filename, line_number))
|
anchors[label].append((filename, line_number+1))
|
||||||
else:
|
else:
|
||||||
anchors[label] = [(filename, line_number)]
|
anchors[label] = [(filename, line_number+1)]
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user