이단교단 기타 선택시 직접 입력 추가

This commit is contained in:
peregr1nus
2025-12-12 16:17:09 +09:00
parent 8ab14e951a
commit a3c8a6d738
2 changed files with 51 additions and 1 deletions

View File

@@ -47,8 +47,17 @@ class WordProcessor:
doc.add_paragraph('') # 빈 줄
# 4. 네 번째 단락: [별첨3] 이단 상세 점검 (기타가 아닌 경우만)
# '기타' 선택 시 직접 입력한 이단명 사용
display_cult_name = cult_name
if cult_name == '기타 (위 선택지에 없을 경우)':
cult_other = basic_info.get('cult_other', '')
if cult_other:
display_cult_name = cult_other
else:
display_cult_name = '기타'
if cult_name and cult_name != '기타 (위 선택지에 없을 경우)' and specific:
self._add_section_title(doc, f'[별첨3] 이단 상세 점검 ({cult_name}) (각 문항에 대해 예, 아니오 또는 필요시 서술형으로 답변해 주시면 됩니다)')
self._add_section_title(doc, f'[별첨3] 이단 상세 점검 ({display_cult_name}) (각 문항에 대해 예, 아니오 또는 필요시 서술형으로 답변해 주시면 됩니다)')
self._add_specific_cult_table(doc, specific, self.cult_questions)
# 기타의견
if specific.get('other_opinions'):