Template:P-collapse/s/doc

From Wikisource
Jump to navigation Jump to search

{{p-collapse/s}} and {{p-collapse/e}} are a pair of templates, that collapses the line spacing (ie top and bottom margins) between paragraphs wrapped by them to 0, so that individual paragraphs appear to be vertically next to each other without needing to code specific margin collapses for those individual paragraphs.

Usage[edit]

{{p-collapse/s}}
This is the first example paragraph.

This is the second example paragraph.
              ...

This is the last example paragraph
{{p-collapse/e}}

which produces:

This is the first example paragraph.

This is the second example paragraph.

             ...

This is the last example paragraph