멀티라인 개선

This commit is contained in:
2026-01-05 15:55:13 +09:00
parent 2c18d4d8b3
commit d527ada167
3 changed files with 164 additions and 11 deletions

View File

@@ -41,7 +41,6 @@ def load_mapping(path):
with open(path) as f:
return yaml.load(f)
# -----------------------------
# annotation 렌더링
# -----------------------------
@@ -57,7 +56,15 @@ def render_annotations_block(unsupported, partial, converted):
if partial:
for p in partial:
lines.append(f" # PARTIAL SUPPORT: {p['note']}")
note_lines = p["note"].splitlines()
if len(note_lines) == 1:
# 단일라인 note
lines.append(f" # PARTIAL SUPPORT: {note_lines[0]}")
else:
# 멀티라인 note
lines.append(" # PARTIAL SUPPORT: |")
for nl in note_lines:
lines.append(f" # {nl}")
lines.append(f" {p['haproxy']}: \"{str(p['value'])}\"")
lines.append("")