Project

General

Profile

Actions

Defect #6148

closed

Quoting, newlines, and nightmares...

Added by Nick Peelman over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Category:
Text formatting
Target version:
Start date:
2010-08-16
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Prelude

Apologies in advance if this bug exists already, I searched around but couldn't find anything. I also tried to engineer a patch, but i got lost really fast once things went into RedCloth territory.

Input:

> One Line
> Two Line
> Three Line

Expected:

Something along the lines of:

One Line

Two Line

Three Line

Without the extra line breaks.

Actual:

One Line
Two Line
Three Line

Comments:

Two newlines, back to back, signifies a paragraph. Got it. A single newline, particularly when inputting text then quoting it (like when I am copying in the body of an external email, for instance) should at least put in a line break (<br/>) at the end of each line to attempt to retain some of the structure of what was there. I don't need it to be rigid like pre is, but it needs to be somewhat stricter than what it is currently.

Another option may be some kind of redcloth extension / override that lets people put in a line break manually, either via the HTML syntax, some kind of formatting hook, a macro or <insert solution here>.

Actions

Also available in: Atom PDF