Python – Name and code to space between lines/paragraphs

pythontext processing

I’m seeking a term and possibly the code behind what would help me implement that term in Python.

I have been working on a text-based Python journaling application.
When I want to review my journal from the command-line shell, it prints out a series of logs like this:

Log_1”…”
Log_2”…”
Log_3”…”

The problem is, there are a lot of logs under a lot of different dates, so the whole journal looks dense, cluttered, and messy.

I’m not a writer or a language arts expert(I barely use MS-Word), but what I want is to create a one line space between the print of each log:

Log_1”…”

Log_2”…”

Log_3”…”

I don’t know what that space in between each log would be called, so it made it impractical to just do some google research.

What would the space be called? And is they’re a specific code that could be passed through print() which would create the output of that space? Thank you.

Best Answer

There are a number of terms that might be what you're looking for. It's hard to tell from your description, but here are some suggestions what to search for:

  • Leading - AKA Line Spacing - This controls the spacing between lines of text. It gets its name from the fact that they used to use strips of lead between the lines of text on a printing press to change it.
  • Sentence Spacing is the space between sentences. Probably not what you're looking for but might be useful.
  • Kerning is the spacing between characters of type.
  • Reglets were used at one time to control spacing between paragraphs. I've not seen this term used in computer typography, but it's possible that it's used somewhere. Usually, I see it referred to paragraph spacing.
  • Slugs - similar to reglets in that they are pieces of metal used to separate paragraphs or other things in type.
Related Topic