What about Line Breaks in Jade?

前端 未结 10 1789
情书的邮戳
情书的邮戳 2020-12-08 03:46

I\'m pretty sure that this is a no-brainer but I didn\'t find any snippet of sample code. What\'s the best way to insert line breaks (aka the good ol\' br/)?

As far

10条回答
  •  無奈伤痛
    2020-12-08 04:12

    This doesn't seem to be an answer, so:

    You can also do it by adding inline br tags using Jade/Pug's inline tag format, e.g.:

    p.
        Some text on the first line.#[br]
        Some text on the second line.
    

    Produces:

      

    Some text on the first line.
    Some text on the second line.

提交回复
热议问题