From 52e3f8e3752f341727bddc8691c576b8ba04c51b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Sun, 22 Feb 2026 17:52:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[contracts]=20Markdown=20=E2=86=94=20DOC?= =?UTF-8?q?X=20=EB=8F=99=EA=B8=B0=ED=99=94=20100%=20=EB=8B=AC=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 분할 문단 원복 (비밀유지서약서, 영업파트너 위촉계약서 2종) - 제목 꺾쇠(< >) 복원 (영업파트너 위촉계약서 2종) - 회사 이메일 누락 복원 (영업파트너 위촉계약서 2종) - sync_check 정규화 개선 (Bold 마커, 리스트 접두사, 빈 테이블 행) --- sam/docs/contracts/markdown/02-nda.md | 3 ++- sam/docs/contracts/markdown/03-partner-agreement.md | 9 +++++---- .../contracts/markdown/04-partner-agreement-group.md | 9 +++++---- sam/docs/contracts/scripts/sync_check.py | 10 +++++++++- 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/sam/docs/contracts/markdown/02-nda.md b/sam/docs/contracts/markdown/02-nda.md index 4a35314..2af5144 100644 --- a/sam/docs/contracts/markdown/02-nda.md +++ b/sam/docs/contracts/markdown/02-nda.md @@ -22,7 +22,8 @@ docx_file: "비밀유지서약서.docx" ## 제1조 (목적) -본 서약서는 주식회사 코드브릿지(이하 “회사”)와의 업무 관계에서 알게 된 기밀 정보를 보호하기 위해 작성되었습니다. +본 서약서는 주식회사 코드브릿지(이하 “회사”)와의 업무 관계에서 알게 된 기밀 정보를 +보호하기 위해 작성되었습니다. ## 제2조 (기밀 정보의 정의) diff --git a/sam/docs/contracts/markdown/03-partner-agreement.md b/sam/docs/contracts/markdown/03-partner-agreement.md index eea874f..a4cd408 100644 --- a/sam/docs/contracts/markdown/03-partner-agreement.md +++ b/sam/docs/contracts/markdown/03-partner-agreement.md @@ -5,7 +5,7 @@ date: "2026-02-22" docx_file: "영업파트너 위촉계약서.docx" --- -# 영업파트너 위촉계약서 +# < 영업파트너 위촉계약서 > *Sales Partner Engagement Agreement* @@ -13,7 +13,8 @@ docx_file: "영업파트너 위촉계약서.docx" ## 제1조 (계약의 목적) -본 계약은 회사와 파트너 간의 영업파트너 위촉 관계를 규정하고, 상호 권리와 의무를 명확히 함을 목적으로 합니다. +본 계약은 회사와 파트너 간의 영업파트너 위촉 관계를 규정하고, 상호 권리와 의무를 +명확히 함을 목적으로 합니다. ## 제2조 (용어의 정의) @@ -236,9 +237,9 @@ docx_file: "영업파트너 위촉계약서.docx" - **대표자**: 이의찬 (인) - **사업자등록번호**: 664-86-03713 - **주소**: 서울특별시 강서구 양천로 583, 우림블루나인 B동 1602호 -- **이메일**: +- **이메일**: admin@codebridge-x.com - **전화**: 02-6347-0005 -- **날짜**: +- **날짜**: - **[파트너]** - **상호/성명**: diff --git a/sam/docs/contracts/markdown/04-partner-agreement-group.md b/sam/docs/contracts/markdown/04-partner-agreement-group.md index f46b6bb..8439ecd 100644 --- a/sam/docs/contracts/markdown/04-partner-agreement-group.md +++ b/sam/docs/contracts/markdown/04-partner-agreement-group.md @@ -5,7 +5,7 @@ date: "2026-02-22" docx_file: "영업파트너 위촉계약서(단체용).docx" --- -# 영업파트너 위촉계약서 +# < 영업파트너 위촉계약서 > *Sales Partner Engagement Agreement* @@ -13,7 +13,8 @@ docx_file: "영업파트너 위촉계약서(단체용).docx" ## 제1조 (계약의 목적) -본 계약은 회사와 파트너 간의 영업파트너 위촉 관계를 규정하고, 상호 권리와 의무를 명확히 함을 목적으로 합니다. +본 계약은 회사와 파트너 간의 영업파트너 위촉 관계를 규정하고, 상호 권리와 의무를 +명확히 함을 목적으로 합니다. ## 제2조 (용어의 정의) @@ -236,9 +237,9 @@ docx_file: "영업파트너 위촉계약서(단체용).docx" - **대표자**: 이의찬 (인) - **사업자등록번호**: 664-86-03713 - **주소**: 서울특별시 강서구 양천로 583, 우림블루나인 B동 1602호 -- **이메일**: +- **이메일**: admin@codebridge-x.com - **전화**: 02-6347-0005 -- **날짜**: +- **날짜**: - **[파트너]** - **상호/성명**: diff --git a/sam/docs/contracts/scripts/sync_check.py b/sam/docs/contracts/scripts/sync_check.py index 1a497c9..09d55d9 100644 --- a/sam/docs/contracts/scripts/sync_check.py +++ b/sam/docs/contracts/scripts/sync_check.py @@ -70,7 +70,11 @@ def extract_text_from_docx(docx_path): continue for row in table.rows: - row_text = " | ".join(cell.text.strip() for cell in row.cells) + cells = [cell.text.strip() for cell in row.cells] + # 빈 셀만 있는 행 건너뛰기 + if not any(cells): + continue + row_text = " | ".join(cells) if row_text.strip(): lines.append(row_text) @@ -142,6 +146,10 @@ def normalize_text(text): text = text.replace("\u3000", " ") # ideographic space # 언더스코어 빈칸 정규화 text = re.sub(r"_{3,}", "___", text) + # Bold 마크업(**) 제거 (DOCX 텍스트에 리터럴 ** 포함되는 경우) + text = re.sub(r"\*\*(.+?)\*\*", r"\1", text) + # 선행 리스트 마커 제거 (DOCX 텍스트가 "- "로 시작하는 경우) + text = re.sub(r"^-\s+", "", text) return text