Supporting logic to handle the use of the backslash character
This commit is contained in:
@@ -59,7 +59,8 @@ namespace Volian.Svg.Library
|
||||
// replace the dash/hyphen or whatever you want to call it, with a hard hyphen. The 16-bit program
|
||||
// treated the dash/hyphen as such. Translate back on any data saves.
|
||||
text = text.Replace(@"-", @"\u8209?");
|
||||
|
||||
// Replace the backslash with a backslash symbol. Translate back on data saves.
|
||||
text = text.Replace(@"\\", @"\u9586?"); // unicode hex 2572
|
||||
// displayTextElement List items are created for anything that is handled differently in RTB, i.e.
|
||||
// symbols, ros, trans, text.
|
||||
int startIndex = 0;
|
||||
@@ -174,6 +175,9 @@ namespace Volian.Svg.Library
|
||||
noExtraRtfStr = noExtraRtfStr.Replace(@"\u8209? ", @"-");
|
||||
noExtraRtfStr = noExtraRtfStr.Replace(@"\u8209?", @"-");
|
||||
|
||||
// change back the backslahs symbol to a regular backslash
|
||||
noExtraRtfStr = noExtraRtfStr.Replace(@"\u9586?", @"\\");
|
||||
|
||||
DisplayTextElementList.Clear();
|
||||
int startIndex = 0;
|
||||
int index = -1;
|
||||
|
Reference in New Issue
Block a user