Sub topic 7
Line breaks and first-line formatting that survive truncation
A good hook can still fail if it is formatted badly. The wording may be strong, but the cutoff can fall in the wrong place. A long first line can push the key detail behind "see more." A stack of blank lines can use up the visible space before the hook finishes.
This chapter covers how line structure and the first characters of a post affect what readers see before they expand it. It ends with a small script that checks a draft against those rules.
What this chapter assumes
You should already know:
- How to write and publish a LinkedIn post, and how the feed shows posts with a "see more" link.
- That the cutoff position varies. The previous chapter covered where it falls and why.
- A few hook patterns, such as a result, a contrarian claim, a mid-story opening, or a mistake.
The Python example needs only Python 3.8 or later and no extra packages.
Why formatting is part of the hook
Truncation does not care about your sentences. It cuts the text where the available space runs out. That space depends on the device, the app version, and the layout. It is probably measured in both characters and displayed lines, and LinkedIn does not publish the exact values.
So you cannot rely on a single number. You can build a first block that survives a range of cutoffs. Three properties make it robust:
- The most important information comes first.
- The block is short enough to fit even on a tight layout.
- Each line break is deliberate and does not waste space.
Rule 1: Let the first line stand alone
The first line should make sense on its own, because it is the one line you can be sure most readers will see. Put the specific detail, the number, or the surprising claim in that line.
Compare two openings:
Weak:
Over the past few years, while working with a number of different teams,
I noticed something about how we handle reviews.
Stronger:
We rejected 40 résumés in one afternoon.
The reason was the same in 31 of them.The weak version spends its first line on setup. A reader whose screen cuts the text after that line sees only "Over the past few years, while working with a number of different teams," and nothing that raises a question. The stronger version delivers the situation and the number in the first line, and the second line adds the open question.
Two practical consequences follow.
- If the first line needs the second line to make sense, shorten the first line or merge the two.
- A first line that is a complete thought can be cut after it without damage. A first line that trails off in the middle of a clause cannot.
Rule 2: Keep the first block short and the lines shorter
Treat the text before the first blank line as your hook block. It should usually be one to three lines. Each line should be a single idea.
Short lines serve two purposes. They are easy to read on a phone. They also make the cutoff less likely to land mid-sentence. If the cutoff falls after the second of three short lines, the reader still sees two complete thoughts. If it falls in the middle of one 200-character line, the reader sees half a sentence.
Do not overdo it. A block of five or six very short lines, with a line break after every few words, often takes more vertical space than one or two normal lines. If the cutoff is measured partly in displayed lines, the later lines fall behind it and the hook is lost.
Too fragmented:
We
rejected
40 résumés
in one afternoon.
Better:
We rejected 40 résumés in one afternoon.Rule 3: Spend blank lines on purpose
A blank line between paragraphs helps readability in the body. In the hook, each blank line takes up a displayed line without carrying any text. If the cutoff counts displayed lines, two blank lines in the first few lines can push part of your hook past the "see more" link.
A reasonable pattern:
- Put the hook in one to three lines with no blank lines between them.
- Add one blank line after the hook.
- Start the body with a line that continues the story directly.
Avoid starting a post with a decorative line, an emoji row, or a separator such as a row of dashes. These use up visible space before any content appears.
Characters that behave differently in the first lines
Some formatting choices carry extra cost at the start of a post. The table summarizes the common ones. The advice is conservative, since the feed's behavior can change.
| Element | What happens | Advice |
|---|---|---|
| Leading emoji | Uses space and can look like decoration or an ad | Skip it, or use at most one that adds meaning |
| Hashtag in the first line | Takes up characters and is a link that can pull a reader away | Put hashtags at the end of the post |
| Link or URL in the first line | Uses many characters and sends readers out of the feed | Keep links out of the hook; place them in the body |
| ALL CAPS opening | Harder to read and often looks like shouting | Use normal sentence case |
| Unicode "bold" or "italic" letters | Screen readers may read them as symbols, and they may not be searchable | Avoid them in the hook |
| @mention in the first line | Uses characters and shifts attention to a name | Use it only when the person is the hook |
| Quotation mark opening | Signals a quote or a story, which works well | Keep the quote short enough to fit |
The first line is also a good place for the single most specific word in your post, usually a number or a named situation. See the specificity chapter for how to choose it.
A before-and-after revision
Here is a draft that breaks several of these rules.
🚀🚀 Excited to share some thoughts on #hiring 🚀🚀
After reviewing applications for several years at a number of companies, I wanted to write down what I learned.
Here are the things I noticed...Problems in the first block:
- Leading emoji use up the first visible characters.
- "Excited to share some thoughts on" is throat-clearing. It announces a topic and states no situation.
- The hashtag takes characters and links away from the post.
- The second paragraph is a long line, so the cutoff may fall inside it.
A revision using the same facts:
We rejected 40 résumés in one afternoon.
The reason was the same in 31 of them.
After years of reviewing applications, I wrote down the pattern.
Here is what I saw:
#hiringThe hook now sits in two short lines at the very start. A blank line separates it from the body. The hashtag is at the end, where it does not compete with the hook.
Check a draft with code
You cannot test against LinkedIn's real cutoff from a script. You can still check your draft against conservative planning numbers and catch the mistakes in this chapter. The script below extends the helper from the topic examples. It returns a list of problems, which is empty when the draft passes.
THROAT_CLEARING = (
"i want to share",
"i wanted to share",
"i'm excited to",
"i am excited to",
"some thoughts on",
)
def first_block(post: str) -> str:
"""Return the text before the first blank line."""
return post.strip().split("\n\n")[0]
def check_hook(post: str, char_limit: int = 140, max_lines: int = 3) -> list:
"""Return a list of formatting problems in the opening block.
`char_limit` and `max_lines` are conservative planning numbers,
not published LinkedIn constants.
"""
block = first_block(post)
lines = block.split("\n")
first = lines[0].strip()
problems = []
if len(block) > char_limit:
problems.append(f"first block is {len(block)} characters, limit {char_limit}")
if len(lines) > max_lines:
problems.append(f"first block has {len(lines)} lines, limit {max_lines}")
for phrase in THROAT_CLEARING:
if first.lower().startswith(phrase):
problems.append(f"opens with throat-clearing: '{phrase}'")
break
if first.startswith("#"):
problems.append("first line starts with a hashtag")
return problems
drafts = {
"weak": "I want to share some thoughts on hiring.\n\nAfter years of reviewing applications...",
"strong": "We rejected 40 resumes in one afternoon.\nThe reason was the same in 31 of them.\n\nHere is what I saw...",
"staccato": "One.\nTwo.\nThree.\nFour.\nFive.\n\nBody.",
}
for name, draft in drafts.items():
problems = check_hook(draft)
print(name, "OK" if not problems else problems)Running it prints:
weak ["opens with throat-clearing: 'i want to share'"]
strong OK
staccato ['first block has 5 lines, limit 3']The script does not judge whether a hook is interesting. It only catches mechanical problems, so a draft can pass and still be dull. Use it as a final filter after you have written several candidate hooks.
Common errors
- Testing only on desktop. A hook that fits on a wide desktop layout may be cut earlier on a phone. Preview the post on a phone before you publish, or use the app's preview if it offers one.
- Putting the best detail in the second sentence. If the first line is setup and the second line is the hook, a tight cutoff hides the hook. Swap them.
- Using blank lines as a style. One blank line after the hook is enough. A post that is double-spaced from the first line wastes the visible space.
- Copying a fragmented style without the content. One-word lines do not make a hook. They only change how the same text is arranged.
- Letting a hashtag or emoji lead. These make the first characters look like decoration instead of content.
Summary of the rules
- Make the first line a complete, specific thought.
- Keep the hook block to one to three short lines, with no blank lines inside it.
- Add one blank line after the hook, then start the body.
- Keep hashtags, links, and decorative characters out of the first lines.
- Check the block against conservative limits, and preview on a phone.
Exercise
A draft begins with this block, followed by a blank line and the body: "🔥 Big news!! I'm excited to share what I learned from our #migration project\nover the last eighteen months, including the three things that went wrong and what we did about each one of them" List four formatting problems in this opening and rewrite it as a two-line hook. Assume the real result was that the migration cut the team's deploy time from 40 minutes to 6.
Show answer
Problems: (1) the leading emoji and "Big news!!" use the first visible characters without saying anything; (2) "I'm excited to share what I learned" is throat-clearing that announces a topic instead of giving a situation; (3) the hashtag in the first line takes characters and is a link that can pull the reader away, so it belongs at the end; (4) the second line is very long, so the cutoff is likely to fall inside it and the specific detail (three things went wrong) is buried. A possible rewrite: "We cut our deploys from 40 minutes to 6.\nThree things went wrong on the way." The hashtag moves to the end of the post, and the body continues after one blank line. Any rewrite is acceptable if it puts the number in the first line, keeps the block to two or three short lines, and removes the emoji, the announcement, and the leading hashtag.
Exercise
Paste the check_hook function into a file and add a new check to it: report a problem when the first line contains a URL (text starting with "http://" or "https://"). Then test it with a draft whose first line is "Read this: https://example.com/post".
Show answer
Add this inside check_hook, before return problems:
if "http://" in first or "https://" in first:
problems.append("first line contains a link")
With the test draft "Read this: https://example.com/post\n\nBody.", check_hook returns ['first line contains a link']. The first block is short, has one line, and does not start with a throat-clearing phrase or a hashtag, so no other problem is reported.