While incorporating pphtml into Guiguts 2, I noticed that the call to linkCounts precedes the call to findLinks. I think this means that the following section of code will never report anything because self.links hasn't been populated yet - I did a quick test that seemed to confirm it.
|
for k, v in self.links.items(): |
|
t = v.split(" ") # look for multiple lines with same target |
|
if len(t) >= 2: |
|
if not reported: |
|
r2.append("[☰warn☷] identical targets from multiple lines") |
|
reported = True |
|
r2.append(" {} linked from lines {}".format(k, v)) |
|
if len(r2) > 5: |
|
r.append( |
|
"[info] file appears to have an index. not reporting reused targets" |
|
) |
|
else: |
|
r = r + r2 |
While incorporating pphtml into Guiguts 2, I noticed that the call to
linkCountsprecedes the call tofindLinks. I think this means that the following section of code will never report anything becauseself.linkshasn't been populated yet - I did a quick test that seemed to confirm it.pphtml/pphtml.py
Lines 496 to 508 in 692c684