mirror of
https://github.com/won-ktds/smarketing-backend.git
synced 2025-12-06 07:06:24 +00:00
Update sns_content_service.py
This commit is contained in:
parent
9e8d160c41
commit
838e0b1d6d
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user