Closed Nurjaman57 closed 6 years ago
Pug does not produce "beautified" html, it produces html that works correctly in the browser. If you want additional whitespace, you must add it explicitly. e.g.
.dropdown-menu(aria-labelledby='dropdownMenuLink')
= '\n'
a.dropdown-item(href='#') Action
= '\n'
a.dropdown-item(href='#') Another action
= '\n'
a.dropdown-item(href='#') Something else here
= '\n'
If you just want prettier output, you can try running the output of pug through an html beautifier, but this should only ever be done for debugging.
Hi i am wondering how i can output inline tag into a new line so the end result will look like this
HTML #1
HTML #2
Here is my pug file for html #1
Here is my pug file for html #2
Many thanks in advance :)