Project

General

Profile

Actions

Defect #2827

closed

{{{foo}}} without spaces incorrectly imported

Defect #2827: {{{foo}}} without spaces incorrectly imported

Added by Daniel Svensson almost 18 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Importers
Target version:
-
Resolution:
Cant reproduce
Affected version:

Description

When importing {{{foo}}}, note that there are no spaces between curly braces and the word within them, the result is <pre>. If I instead add space between the braces the result is properly interpreted as <pre>foo</pre>

Updated by Daniel Svensson almost 18 years ago Actions #1

Daniel Svensson wrote:

When importing {{{foo}}}, note that there are no spaces between curly braces and the word within them, the result is <pre>. If I instead add space between the braces the result is properly interpreted as <pre>foo</pre>

Humm.. further investigation hints that this might be a problem with one-liner {{{ }}} everywhere no matter if they have spaces or not.

Updated by Daniel Svensson almost 18 years ago Actions #2

Maybe oneliner {{{Inline Code}}} should be translated to Inline Code?

Updated by Daniel Svensson almost 18 years ago Actions #3

Daniel Svensson wrote:

Maybe oneliner {{{Inline Code}}} should be translated to Inline Code?

@Inline Code@
even

Updated by Daniel Svensson almost 18 years ago Actions #4

oh the spam, oh the sorrow.. forgot to mention that is is an issue with the Trac importer.

Updated by Daniel Svensson almost 18 years ago Actions #5

Add following somewhere in convert_wiki_text:

  # Inlined code
  text = text.gsub(/\{\{\{([^\}^\n]+)\}\}\}/) { |s| "@#{$1.strip}@" }

Test cases:

puts convert_wiki_text("{{{ spider pig spider pig }}}")
puts convert_wiki_text("{{{spider pig spider pig}}}")
puts convert_wiki_text("{{{\nspider pig spider pig\n}}}")

Output:

@spider pig spider pig@
@spider pig spider pig@
<pre>
spider pig spider pig
</pre>

Updated by Daniel Felix almost 14 years ago Actions #6

Hi there,

are there any news on this? Is this still reproduceable with Redmine 2.2?

Can someone test this please?

Updated by Jean-Baptiste Barth over 13 years ago Actions #7

  • Status changed from New to Closed
  • Resolution set to Cant reproduce

Maybe improved with r2011. I close this issue as there's no feedback.

Actions

Also available in: PDF Atom