Edgewall Software
Modify

Opened 17 years ago

Last modified 3 years ago

#4790 new defect

a blockquote after a list gets nested into two <blockquote> tags

Reported by: Gary Wilson <gary.wilson@…> Owned by:
Priority: high Milestone: topic-wikiengine
Component: wiki system Version:
Severity: normal Keywords: blockquote paragraph
Cc: gary.wilson@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This text:

a list:
 * item 1
 * item 2

  a blockquote after a list

turns into:

<p>
a list:
</p>
<ul><li>item 1
</li><li>item 2
</li></ul><blockquote>
<blockquote>
<p>
a blockquote after a list
</p>
</blockquote>
</blockquote>

Same thing happens for a blockquote following a blockquote following a list:

a list:
 * item 1
 * item 2

  a blockquote after a list

  a blockquote after a blockquote after a list

turns into:

<p>

a list:
</p>
<ul><li>item 1
</li><li>item 2
</li></ul><blockquote>
<blockquote>
<p>
a blockquote after a list
</p>
</blockquote>
</blockquote>
<blockquote>
<blockquote>
<p>
a blockquote after a blockquote after a list
</p>
</blockquote>
</blockquote>

Attachments (0)

Change History (8)

comment:1 by Christian Boos, 17 years ago

Keywords: blockquote added
Milestone: 0.11
Owner: changed from Jonas Borgström to Christian Boos

Right, there should be only one level of indentation in the quote.

comment:2 by Christian Boos, 17 years ago

Milestone: 0.110.12

WikiEngine refactoring and related fixes postponed.

comment:3 by Christian Boos, 16 years ago

Keywords: paragraph added
Priority: normalhigh

#6887 provides additional examples and discussion about the expected behavior of blank lines in block level markup.

comment:4 by Christian Boos, 14 years ago

Milestone: next-major-0.1X0.13

comment:5 by Christian Boos, 13 years ago

Milestone: 0.130.14-wikiengine

comment:6 by anonymous, 13 years ago

Note that this makes it impossible to include a list in a blockquote:

  This is a quoted list:
   * item1
   * item2

I expect it to be roughly rendered as:

<blockquote>
<p>This is a quoted list:</p>
<ul>
<li>item1</li>
<li>item2</li>
</ul>
</blockquote>

But is instead translated to:

<blockquote>
<p>This is a quoted list:</p>
</blockquote>
<ul>
<li>item1</li>
<li>item2</li>
</ul>

Example:

This is a quoted list:

  • item1
  • item2

Perhaps a simple workaround/fix would be to provide a {{{#!quote processor to quote arbitrary markup?

comment:7 by anonymous, 13 years ago

In response to my own comment, a current workaround is to apply custom style to a div element such that it mimics a blockquote.

File site.css:

div.blockquote {
  /* copy-paste the blockquote style here. */
}

In wiki:

{{{#!div class="blockquote"
Your wiki markup here.
}}}

Less elegant/more cryptic than a native alternative though.

comment:8 by Ryan J Ollos, 9 years ago

Owner: Christian Boos removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


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