equal
deleted
inserted
replaced
126 |
126 |
127 // if we have non-regular spaces (nbsp, tab, etc.) we need to make a copy |
127 // if we have non-regular spaces (nbsp, tab, etc.) we need to make a copy |
128 // and replace them with regular spaces. otherwise they show up as boxes. |
128 // and replace them with regular spaces. otherwise they show up as boxes. |
129 if (indexOfFirstNonRegularSpace > -1) { |
129 if (indexOfFirstNonRegularSpace > -1) { |
130 for(; indexOfFirstNonRegularSpace<strLength; ++indexOfFirstNonRegularSpace ) { |
130 for(; indexOfFirstNonRegularSpace<strLength; ++indexOfFirstNonRegularSpace ) { |
131 if( TChar(newStr[indexOfFirstNonRegularSpace]).IsSpace() ) { |
131 // if ZERO WIDTH SPACE found do not replace it with regular space |
|
132 if( TChar(newStr[indexOfFirstNonRegularSpace]).IsSpace() && |
|
133 !(Font::treatAsZeroWidthSpace (newStr[indexOfFirstNonRegularSpace]))) { |
132 newStr[indexOfFirstNonRegularSpace] = ' '; |
134 newStr[indexOfFirstNonRegularSpace] = ' '; |
133 } |
135 } |
134 } |
136 } |
135 } |
137 } |
136 |
138 |