HN Comment Line Breaks

Users complain about Hacker News stripping line breaks and newlines from comments, causing long unwrapped lines that are hard to read, and suggest fixes like indenting with four spaces for code blocks.

📉 Falling 0.5x Other
3,880
Comments
20
Years Active
5
Top Authors
#7225
Topic ID

Activity Over Time

2007
15
2008
26
2009
75
2010
94
2011
126
2012
190
2013
218
2014
159
2015
167
2016
198
2017
205
2018
188
2019
249
2020
298
2021
271
2022
340
2023
304
2024
443
2025
302
2026
12

Keywords

HN POSIX github.com ES5 microsoft.com wikipedia.org line breaks lines points raw wrapping def clean pretty sure files

Sample Comments

reycharles Jul 15, 2015 View on HN

The article doesn't mention line breaks. I have no guess as to how a line break should be interpreted!

DanBC Jul 3, 2016 View on HN

Please add four spaces to the front of that long unbroken line.

TristanBall Sep 19, 2024 View on HN

Ha.. my linebreaks got removed!

jcun4128 Dec 27, 2021 View on HN

Haha I did this too. I wish I factored in line breaks.

pjscott Oct 22, 2011 View on HN

I am slightly bothered by the lack of a '\n'.

Frank2312 Jul 16, 2017 View on HN

Maybe you should automate your line breaks :)

billforsternz Feb 1, 2023 View on HN

HN hasn't respected my line breaks.

DanBC Mar 30, 2015 View on HN

Please put four spaces in front of that very long unbroken line.

SushiHippie Nov 12, 2023 View on HN

Missing:- use blank lines between lines- if you want them to show up as seperate lines

chaosmachine Jun 22, 2009 View on HN

the line breaks make it hard to read.