File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
MigraDocCore.DocumentObjectModel
MigraDoc.DocumentObjectModel.Visitors
MigraDoc/MigraDoc.DocumentObjectModel Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,14 @@ internal override void VisitDocumentObjectCollection(DocumentObjectCollection el
124
124
currentString = "" ;
125
125
break ;
126
126
127
- case '' : //soft hyphen
127
+ case Chars . SoftHyphen : //soft hyphen
128
128
if ( currentString != "" )
129
129
{
130
130
elements . InsertObject ( idx + insertedObjects , new Text ( currentString ) ) ;
131
131
++ insertedObjects ;
132
132
currentString = "" ;
133
133
}
134
- elements . InsertObject ( idx + insertedObjects , new Text ( "" ) ) ;
134
+ elements . InsertObject ( idx + insertedObjects , new Text ( new string ( Chars . SoftHyphen , 1 ) ) ) ;
135
135
++ insertedObjects ;
136
136
currentString = "" ;
137
137
break ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ 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
82
}
83
83
}
You can’t perform that action at this time.
0 commit comments