v9.9 search bug: output wraps within lines

General questions about using TextPad

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

Post Reply
IanOfYork
Posts: 132
Joined: Sat Nov 04, 2017 11:54 am
Location: York, England

v9.9 search bug: output wraps within lines

Post by IanOfYork »

Just upgraded to version 9.9 and now see a problem with the search.
The search works fine, but the output wraps within lines at seemingly random points.
Digging deeper, the output seems to have a CR/LF pair added at about 4k intervals.
Last edited by AmigoJack on Sun Sep 07, 2025 8:35 pm, edited 1 time in total.
Reason: more detailled subject
User avatar
AmigoJack
Posts: 599
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: v9.9 search bug: output wraps within lines

Post by AmigoJack »

So you mean "Find In Files". Does that mean
  1. that you get matching lines from found files which are very long (more than 4096 characters) and such lines are line wrapped? Or
  2. that the found lines are of average length (like 10-120 characters) and the sum of multiple lines in the results then forces one the last one to line wrap where there should not be one in the original file?
In either case you end up with a document of results that could not be searched again (with "Find") using the same queried text, because it wouldn't match all of the lines - right?
miked
Posts: 69
Joined: Tue Feb 27, 2007 11:17 am

Re: v9.9 search bug: output wraps within lines

Post by miked »

I've just came here as I noticed the same thing.

If the find in files produces say 100 results, the result at approximately line 40 and at line 80 will be split over 2 lines.
I agree that the splits happen every 4096 characters.
User avatar
bbadmin
Site Admin
Posts: 1033
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: v9.9 search bug: output wraps within lines

Post by bbadmin »

This is fixed in TextPad 9.9.1 and 8.23.1 which are now available for download.
lklawrie
Posts: 56
Joined: Fri Aug 22, 2003 3:19 pm
Location: Pagosa Springs, Colorado, USA
Contact:

Re: v9.9 search bug: output wraps within lines

Post by lklawrie »

Appears to still be there in V 8.23. see attached.

Causes weird errors when "Open All" is then applied.

one line, for example:
H:\Running-Weather\Norway CERRA\Source\TMY_Inderoy_Trondelag_CERRA_1991-2020_tmy-
no.def(3): StateProv=TD

Interestingly, when I searched a different value in these files, it did not mess up.
Attachments
Search Results.txt
(36.83 KiB) Downloaded 121 times
Linda
User avatar
bbadmin
Site Admin
Posts: 1033
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: v9.9 search bug: output wraps within lines

Post by bbadmin »

I edited your search results file to strip off "H:\Running-Weather\Norway " and correct the split lines, before saving it as "C:\Running-Weather\Norway". A find in files on that had no split lines. I also ran a different find which produced over 98,000 matches, without a single split line.

Please check that the version you are running is 8.23.1.
Post Reply