Update sns_content_service.py

This commit is contained in:
박서은 2025-06-19 10:49:51 +09:00
parent 9e8d160c41
commit 838e0b1d6d

View File

@ -1942,7 +1942,7 @@ class SnsContentService:
# 🔥 추가: 태그 제거 후 남은 빈 줄 정리 # 🔥 추가: 태그 제거 후 남은 빈 줄 정리
content = re.sub(r'\n\s*\n\s*\n', '\n\n', content) # 3개 이상의 연속 줄바꿈을 2개로 content = re.sub(r'\n\s*\n\s*\n', '\n\n', content) # 3개 이상의 연속 줄바꿈을 2개로
content = re.sub(r'<br>\s*<br>\s*<br>', '<br><br>', content) # 3개 이상의 연속 <br>을 2개로 content = re.sub(r'<br>\s*<br>\s*<br>', '<br><br>', content) # 3개 이상의 연속 <br>을 2개로
# 2. 네이버 블로그인 경우 이미지 태그를 실제 이미지로 변환 # 2. 네이버 블로그인 경우 이미지 태그를 실제 이미지로 변환
elif request.platform == '네이버 블로그' and image_placement_plan: elif request.platform == '네이버 블로그' and image_placement_plan: