mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 17:00:23 +00:00
7 lines
436 B
Python
7 lines
436 B
Python
import sys
|
|
sys.stdout.reconfigure(encoding="utf-8")
|
|
path = r"D:\L\OB\Literature-hub\.obsidian\plugins\paperforge\main.js"
|
|
s = open(path, "r", encoding="utf-8").read()
|
|
print("No PDF in file:", "No PDF" in s)
|
|
print("t(orphan_explain) in file:", "orphan_explain" in s)
|
|
print("Hardcoded 'Delete ' in orphan section:", s[s.find("orphan-modal-actions")-200:s.find("orphan-modal-actions")+500] if "orphan-modal-actions" in s else "NOT FOUND")
|