TP Alters Escaped Name Sequences in Find Replace Lists

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Okwari
Posts: 1
Joined: Fri Feb 22, 2013 8:36 pm

TP Alters Escaped Name Sequences in Find Replace Lists

Post by Okwari »

Has anyone else seen this?

I'm using TP 6.2.2 in Win7.

The task is to replace literal HTML mark-up characters: <, >, & and " with escaped name sequences: &lt; , &gt; , &amp; , &quot; for the purpose of displaying HTML code snippets in web pages.

The escaped sequences are used as needed - usually as items in the Replace list, but also in the Find list - and everything works as expected while TP remains open.

Upon closing and re-opening TP, however, the escaped sequences are all replaced by the corresponding literal characters in the Find and/or Replace lists. (&lt; is replaced by <, etc.)

Moreover, either list can be made to contain duplicates of the literal mark-up characters. I can, in fact, fill either list with nothing but < or ", etc.

The altered characters cannot be used for the intended editing task again, as they are truly changed. (It's not merely a list display issue) Instead, the escaped name sequences must be entered anew after re-opening TP. Deleting the lists is optional.

This behavior appears to be limited to Microsoft's escaped name sequences for characters in the ASCII range, so that only &lt; , &gt; , &amp; and &quot; are affected. The escaped name sequence ' remains unchanged.

The simple workaround is to use the equivalent decimal or hexadecimal sequences instead, ... I just hate having to memorize five or ten more numerical sequences.

Any clarification of this odd behavior will be appreciated.
Post Reply