Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Lines starting with a space should be rendered as space-preserve

#47

Originally posted on Trac by gaspard Original Trac Ticket

 Description (Last modified by gaspard)

paragraphe starting with a space

A paragraphe starting with a space should be treated as space-preserving. Every first space on each line is removed.

line starting with a space in a normal paragraphe

A line starting with a space in a normal paragraphe should be treated as a line break.

Example:


This is a normal paragraphe. There are many phrases in this paragraphe and a forced line break
 here. End of first paragraphe.

 This second paragraphe
 is space preserving
 la la           la la.

Becomes:


This is a normal paragraphe. There are many phrases in this paragraphe and a forced line breakhere. End of first paragraphe.

This second paragraphe
is space preserving
la la           la la.

Trac Attachments

Trac Comments

2007-08-16 09:27:17 changed by gaspard

Replaced by .

description changed.

Replaced by .

description changed.

2007-08-16 11:45:54 changed by gaspard

(In [706]) Implemented white-space/line-break when line starts with a space. Fixes #47 Lines starting with a space should be rendered as space-preserve. More bug fixes for relations. Refs #1 Rewrite of relations.

status changed from new to closed.

resolution set to fixed.

(In [706]) Implemented white-space/line-break when line starts with a space. Fixes #47 Lines starting with a space should be rendered as space-preserve. More bug fixes for relations. Refs #1 Rewrite of relations.

status changed from new to closed.

resolution set to fixed.

2007-08-21 11:25:05 changed by gaspard

It would be better if a single line break without spaces worked.

Hello Break

Replace white-space preserve by 'pre' tag.

status changed from closed to reopened.

type changed from enhancement to defect.

resolution deleted.

It would be better if a single line break without spaces worked.

Hello Break

Replace white-space preserve by 'pre' tag.

status changed from closed to reopened.

type changed from enhancement to defect.

resolution deleted.

2007-08-21 15:21:24 changed by gaspard

(In [719]) Modified zazen so line breaks are treated as 'br' tags in paragraphs. Fixes #47 Lines starting with a space should be rendered as space-preserve.

status changed from reopened to closed.

resolution set to fixed.

(In [719]) Modified zazen so line breaks are treated as 'br' tags in paragraphs. Fixes #47 Lines starting with a space should be rendered as space-preserve.

status changed from reopened to closed.

resolution set to fixed.

Reported by Gaspard Bucher · September 3rd, 2008 @ 12:47 PM

State: resolved
Milestone: 1.0
Assigned to: Gaspard Bucher Gaspard Bucher

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.