Edgewall Software

Ticket #6887 (closed defect: duplicate)

Opened 16 months ago

Last modified 16 months ago

Blockquote Fails to Detect Multiple Paragraphs

Reported by: david@… Owned by: cboos
Priority: normal Milestone:
Component: wiki system Version: devel
Severity: normal Keywords:
Cc:

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

Change History

Changed 16 months ago by osimons

  • version set to 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.

Changed 16 months ago by cboos

  • status changed from new to closed
  • resolution set to duplicate

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.

Add/Change #6887 (Blockquote Fails to Detect Multiple Paragraphs)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.