ASP Line-breaks - \n?

前端 未结 5 842
太阳男子
太阳男子 2021-02-19 07:28

I have been searching for a way to insert linebreaks in my code for when I view my source. I am not looking for

Something like the PHP equiv t

5条回答
  •  深忆病人
    2021-02-19 08:00

    For me, using "\n" didn't work and resulted in \n appearing as text on the webpage rather than as a newline in the source code view, however using chr(10) did work. Using CrLf was not an option for me as that generates a windows line ending (\r\n) and I needed the Linux line ending which is just the linefeed (\n).

提交回复
热议问题