Paragraph spacing in input and preview does not match final display

Stephen Coles
Posts: 1,029
Just reposting this report so it’s not lost.
Typedrawers’ CSS has built-in spacing below paragraphs, but that doesn’t show in the input
field (or the Preview), so people add an extra linebreak to get space
between paragraphs. If you do a single return, you get space between the
two paragraphs. So it’s a bit of a bug that needs to get fixed in either the input or the display styles.
1
Comments
-
Test:These two paragraphs have a single line break between them.These two paragraphs have a single line break between them.These two paragraphs have two line breaks between them.These two paragraphs have two line breaks between them.
0 -
I’d be happy to take a stab at this if the maintainers are too busy.0
-
Maybe something can be done about the code view also?
Linespaces like this<br>in code view get mangled.
2 -
The first reason of the issue is that the CSS in editor is different from the CSS in the published comment. Some synchronisation of rules (in the editor's CSS) will help to see more fair Preview before the comment will be posted.
The second reason of the issue is that, when I press the Enter key in editor, there is some random chance that I have something from the following options, and I never know which one:- <br> – directly does what I see in the editor. One <br> is a line break, two <br><br> are a double line break. This is fair for both editor and published comment, so usually I prefer this option.
- <div> – I'm not sure but it seems like it has a different vertical space than just two <br><br>.
- <br> inside <div> – worst option which cause that extra vertical space.
1
Categories
- All Categories
- 46 Introductions
- 3.9K Typeface Design
- 483 Type Design Critiques
- 560 Type Design Software
- 1.1K Type Design Technique & Theory
- 649 Type Business
- 844 Font Technology
- 29 Punchcutting
- 517 Typography
- 119 Type Education
- 321 Type History
- 77 Type Resources
- 110 Lettering and Calligraphy
- 31 Lettering Critiques
- 79 Lettering Technique & Theory
- 545 Announcements
- 88 Events
- 113 Job Postings
- 170 Type Releases
- 173 Miscellaneous News
- 275 About TypeDrawers
- 53 TypeDrawers Announcements
- 120 Suggestions and Bug Reports