Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359531

Summary: Character escaping incomplete
Product: z_Archived Reporter: Jan Rosczak <jan.rosczak>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: RESOLVED INVALID QA Contact: David Green <greensopinion>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.