#6887 closed defect (duplicate)
Blockquote Fails to Detect Multiple Paragraphs
Reported by: | 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 , 17 years ago
Version: | → devel |
---|
comment:2 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
The behavior is the same for lists. When we have:
- First point
- 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.
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: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.