You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Classic ASP+MySQL环境下实现数据库文本指定宽度换行并保留段落间距

Classic ASP + MySQL: Preserving Line Breaks and Paragraph Spacing in Text Display

I've been troubleshooting this issue for days with no luck. I'm working with Classic ASP and a MySQL database, and I can't get text from the database to display correctly—neither automatic line wrapping nor preserved paragraph spacing works as intended together.

Here's what I've tried so far:

  • Using a styled <p> tag:
    <p STYLE="word-wrap: break-word;width:200"><%=V12%></p>
    This handles line wrapping correctly but doesn't preserve paragraph spacing between blocks of text.
  • Using the <pre> tag:
    This keeps paragraph spacing intact but doesn't wrap long lines automatically, leading to horizontal overflow.
  • Replacing line breaks with <BR> tags via ASP:
    V12 = Replace(INFO1("STORY_"),vbCrLf,"<BR>")
    This had no effect whatsoever on the displayed text.

I've gone through similar questions here but none of the provided solutions resolved my problem. Any guidance or alternative approaches would be greatly appreciated.

内容的提问来源于stack exchange,提问作者Penguin

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.12 15:25:09