Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 14 years ago

#6887 closed defect (duplicate)

Blockquote Fails to Detect Multiple Paragraphs

Reported by: david@… Owned by: Christian Boos
Priority: normal Milestone:
Component: wiki system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Whenever I try to put in a blockquote with more than one paragraph in the Trac wiki syntax, I get mulitple blockquotes. For example:

  Ask not what your country does for you. Ask what you can do for your country.
  
  -- John F. Kennedy

Note that the line between the two paragraphs is itself indented in order to indicate that both paragraphs are a part of the same blockquote. What I'd expect to get is:

<blockquote>
<p>
Ask not what your country does for you. Ask what you can do for your country.
</p>
<p>
-- John F. Kennedy
</p>
</blockquote>

But what I get instead is:

<blockquote>
<p>
Ask not what your country does for you. Ask what you can do for your country.
</p>
</blockquote>

<blockquote>
<p>
-- John F. Kennedy
</p>
</blockquote>

Have I missed something in how the Trac wiki syntax works, or is this indeed a bug?

Thanks!

Attachments (0)

Change History (3)

comment:1 by osimons, 17 years ago

Version: devel

Kind off feels like a bug, because it is not exactly intuitive. However, according to the ruleset it is correct as the basic idea is that an empty line resets (contains no text). Similar reports have been filed by users needing one bullet point with two paragraphs and other similar use cases.

The common workaround is to use the [[BR]] (line break) pseudo-macro to achieve roughly the desired visual effect:

 one line [[BR]][[BR]]
 another line

That said, blockquote may well have room for future improvements, not least as mentioned in #4790.

I'm tempted to close it in some way, but I'll leave it open for now to see others have comments on this issue - there may easily be things I've missed when looking over this issue.

comment:2 by Christian Boos, 17 years ago

Resolution: duplicate
Status: newclosed

The behavior is the same for lists. When we have:

  1. First point
  1. Second point

Then, the wiki considers this to be two lists. As with blockquotes, we can do better here.

Conversely, blank lines won't always give the desired results, like between citations.

Consider this example:

citation

The text above is > citation, and this line is followed by a blank line.

second citation

The > second citation is directly coalesced with the line The text above is ..., which also looks wrong.

To summarize: blank lines should enforce separation between paragraphs or between paragraph and block level markup, but not split up block level markup.

Now, looking at #4790, this is exactly the same thing. Closing as duplicate.

comment:3 by anonymous, 14 years ago

Also at #4790 is a temporary workaround.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.