File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
MigraDocCore.DocumentObjectModel
MigraDoc.DocumentObjectModel.Visitors
MigraDoc/MigraDoc.DocumentObjectModel Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -118,20 +118,21 @@ internal override void VisitDocumentObjectCollection(DocumentObjectCollection el
118
118
++ insertedObjects ;
119
119
break ;
120
120
121
+ case Chars . ZeroWidthSpace :
121
122
case '-' : //minus
122
123
elements . InsertObject ( idx + insertedObjects , new Text ( currentString + ch ) ) ;
123
124
++ insertedObjects ;
124
125
currentString = "" ;
125
126
break ;
126
127
127
- case '' : //soft hyphen
128
+ case Chars . SoftHyphen : //soft hyphen
128
129
if ( currentString != "" )
129
130
{
130
131
elements . InsertObject ( idx + insertedObjects , new Text ( currentString ) ) ;
131
132
++ insertedObjects ;
132
133
currentString = "" ;
133
134
}
134
- elements . InsertObject ( idx + insertedObjects , new Text ( "" ) ) ;
135
+ elements . InsertObject ( idx + insertedObjects , new Text ( new string ( Chars . SoftHyphen , 1 ) ) ) ;
135
136
++ insertedObjects ;
136
137
currentString = "" ;
137
138
break ;
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ public sealed class Chars
77
77
public const char NumberSign = '#' ;
78
78
public const char Question = '?' ;
79
79
public const char Hyphen = '-' ; // char(45)
80
- public const char SoftHyphen = ' ' ; // char(173)
80
+ public const char SoftHyphen = '\u00ad ' ; // char(173)
81
81
public const char Currency = '¤' ;
82
+ public const char ZeroWidthSpace = '\u200b ' ;
82
83
}
83
84
}
You can’t perform that action at this time.
0 commit comments