멀티라인 개선
This commit is contained in:
11
migrator.py
11
migrator.py
@@ -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("")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user