Release v0.1.4 with terrain rescanning and owner-published map updates
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 6m26s
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 6m26s
This commit is contained in:
16
format_report_md.py
Normal file
16
format_report_md.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from pathlib import Path
|
||||
p = Path('MineGeo community report.txt')
|
||||
parts = p.read_text(encoding='utf-8').split('\n\n')
|
||||
headings = {'Changes made', 'Recommended next steps', 'Scope and limitations'}
|
||||
out = []
|
||||
in_recommendations = False
|
||||
for i, part in enumerate(parts):
|
||||
part = part.strip()
|
||||
if not part: continue
|
||||
if i == 0: out.append('# ' + part)
|
||||
elif part in headings:
|
||||
in_recommendations = part == 'Recommended next steps'
|
||||
out.append('## ' + part)
|
||||
elif in_recommendations: out.append('- ' + part)
|
||||
else: out.append(part)
|
||||
Path('MineGeo community improvement report.md').write_text('\n\n'.join(out) + '\n', encoding='utf-8')
|
||||
Reference in New Issue
Block a user