Bug with escaping backslashes

7 views
Skip to first unread message

Richard

unread,
Aug 18, 2010, 9:39:34 AM8/18/10
to Workspace Mechanic for Eclipse
Hi,

I encountered a problem with how Workspace Mechanic handles escaping
backslashes, illustrated by the following example.

The *.epf-File for Workspace Mechanic contains a line like this:

/instance/org.eclipse.jdt.ui/
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0"
encoding\="UTF-8" standalone\="no"?><templates> ............ </
templates>

When applied, this leads to a line like this in the Eclipse settings
(org.eclipse.jdt.ui.prefs):

org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\\\="1.0"
encoding\\\="UTF-8" standalone\\\="no"?><templates> ............ </
templates>

The problem is, each single (escaping) backslash ist transformed to
triple backslashes. Double backslashes would be transformed to five
backslashes, and so on. This doesn't work.

Is there a workaround? If not, will it be fixed in the next release?

Regards,
Richard

Robert Konigsberg

unread,
Aug 18, 2010, 11:40:25 AM8/18/10
to workspac...@googlegroups.com
Added as http://code.google.com/a/eclipselabs.org/p/workspacemechanic/issues/detail?id=26

I'm going to start looking at bugs when I come back from leave late next week.
--
Robert Konigsberg
konig...@gmail.com
Reply all
Reply to author
Forward
0 new messages