Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359531 - Character escaping incomplete
Summary: Character escaping incomplete
Status: RESOLVED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: David Green CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-30 04:29 EDT by Jan Rosczak CLA
Modified: 2011-11-07 12:00 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Rosczak CLA 2011-09-30 04:29:38 EDT
Build Identifier: wikitext-standalone-1.6.0-SNAPSHOT

The escape character "\" only works for curly braces in the confluence language not for all special characters.

For example the text "\-Hello World-" is rendered as "<p>\-Hello World-</p>" and not as "<p>-Hello World-</p>"

Reproducible: Always

Steps to Reproduce:
MarkupParser markupParser = new MarkupParser(new ConfluenceLanguage());
String htmlContent = markupParser.parseToHtml("\\-Hello World-");
System.out.println(htmlContent);
Comment 1 David Green CLA 2011-09-30 18:25:01 EDT
I tried out your example on the "Confluence sandbox":http://sandbox.onconfluence.com/dashboard.action?os_username=sandbox&os_password=sandbox 
The rendering that you observed is consistent with the way that Confluence works.