Commit 6e8e0f7
committed
Fix snippet info preview bug for ANSI encodings
When either the plain text or Markdown file types were selected in the
Save Snippet Information dialogue box and the ANSI encoding was also
selected, the snippet displayed when the output ws previewed could
differ from that written to file. This occured when the snippet
contained characters that couldn't be rendered correctly in ANSI: the
preview would show the correct snippet (rendered in Unicode) while the
snippet with incorrectly translated characters was written to file.
This bug was fixed so that the snippet previewed was also in ANSI
encoding, meaning that any encoding errors show up there exactly as they
will be written to file.
Fixes #1641 parent 19dc440 commit 6e8e0f7
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
241 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
| |||
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
| 271 | + | |
267 | 272 | | |
268 | 273 | | |
269 | 274 | | |
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
273 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
274 | 282 | | |
275 | 283 | | |
276 | 284 | | |
| |||
0 commit comments