new line without
tag

后端 未结 4 1472
被撕碎了的回忆
被撕碎了的回忆 2021-02-07 00:46

Writing this html:

lorem ipsum
lorem ipsum
lorem ipsum

browser shows:

lorem ipsumlorem ipsumlorem ipsum

Is th

4条回答
  •  野性不改
    2021-02-07 01:14

    I would like to deliver some additional ways to achieve the OP's purpose. Yet, the direct answer for the title "new line without
    tag"
    would be

     or 
    white-space: pre-wrap; like the above.

    But,

    If I need 100000 lines of dummy lorem ipsum
    , I would rather use emmet (which is built-in in VSCode) than write anything myself. ({lorem ipsum
    }*100)*100

    Or, in case these 100000 short lines are predefined text, I can search and replace (Ctrl + H) with regex turned on, replace the regex $ (endline) with
    .

提交回复
热议问题