feat: 동물약 안내서 항목별 줄바꿈 처리
- 가. 나. 다. 라. 등 항목 앞에 줄바꿈 추가 - 1) 2) 3) 등 번호 앞에 들여쓰기 + 줄바꿈 - 미리보기/인쇄 모두 적용 - white-space: pre-line으로 줄바꿈 표시 - 80mm 프린터 출력에 최적화
This commit is contained in:
@@ -1150,19 +1150,19 @@
|
||||
${info.efficacy_effect ? `
|
||||
<div style="margin-bottom:12px;background:#f0fdf4;padding:12px;border-radius:8px;">
|
||||
<h5 style="margin:0 0 6px;color:#059669;">▶ 효능효과</h5>
|
||||
<p style="margin:0;font-size:13px;line-height:1.5;color:#334155;">${escapeHtml(info.efficacy_effect)}</p>
|
||||
<p style="margin:0;font-size:13px;line-height:1.7;color:#334155;white-space:pre-line;">${escapeHtml(info.efficacy_effect)}</p>
|
||||
</div>` : ''}
|
||||
|
||||
${info.dosage_instructions ? `
|
||||
<div style="margin-bottom:12px;background:#eff6ff;padding:12px;border-radius:8px;">
|
||||
<h5 style="margin:0 0 6px;color:#0284c7;">▶ 용법용량</h5>
|
||||
<p style="margin:0;font-size:13px;line-height:1.5;color:#334155;">${escapeHtml(info.dosage_instructions)}</p>
|
||||
<p style="margin:0;font-size:13px;line-height:1.7;color:#334155;white-space:pre-line;">${escapeHtml(info.dosage_instructions)}</p>
|
||||
</div>` : ''}
|
||||
|
||||
${info.precautions ? `
|
||||
<div style="margin-bottom:12px;background:#fef2f2;padding:12px;border-radius:8px;">
|
||||
<h5 style="margin:0 0 6px;color:#dc2626;">▶ 주의사항</h5>
|
||||
<p style="margin:0;font-size:13px;line-height:1.5;color:#334155;">${escapeHtml(info.precautions.substring(0, 500))}${info.precautions.length > 500 ? '...' : ''}</p>
|
||||
<p style="margin:0;font-size:13px;line-height:1.7;color:#334155;white-space:pre-line;">${escapeHtml(info.precautions.substring(0, 800))}${info.precautions.length > 800 ? '...' : ''}</p>
|
||||
</div>` : ''}
|
||||
|
||||
<div style="display:flex;gap:10px;margin-top:20px;">
|
||||
|
||||
Reference in New Issue
Block a user