haptalaon: A calming cup of tea beside an open book (Default)
Haptalaon ([personal profile] haptalaon) wrote in [community profile] style_system2023-03-12 11:26 am
Entry tags:

Remove automatic BR tags

UPDATE: better way of doing this in the comments!



Hello all!



I do pretty things to my paragraphs, so I hand-code up my HTML in the editor rather than using rich text, putting P tags round my paragraphs. However, DW will still automatically add BR tags between them - making the gaps between my paragraphs HUGE and unsightly



The fix for this sets the height of BR as nothing - making the reading experience far more sightly. Put it in your Customise CSS section.



.entry-content br {
   display: block;
   margin: 0 0;
}
momijizukamori: Grey tabby cat with paws on keyboard and mouse. The text reads 'code cat is on the job', lolcats-style (CODE CAT)

[personal profile] momijizukamori 2023-03-12 04:29 pm (UTC)(link)
There is actually an easier way to do this! You can set the post creator to not add autoformatting - on the beta create page, it's the 'Raw HTML' format option, and on the old create page, it's the 'Disable Auto-Formatting' checkbox.
sporky_rat: (Didn't you see that coming?)

[personal profile] sporky_rat 2023-03-12 08:42 pm (UTC)(link)

Momiji knows that of which she speaks - the semiofficial DW Dev Styles Guru here.

feast_of_regrets: (Lovin' It Powerpuff)

[personal profile] feast_of_regrets 2023-03-13 07:03 pm (UTC)(link)
Thank you so much!!!