Author |
Message |
Cheese Wow Cheese is so helpful!

Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Thu Dec 18, 2008 12:13 am Post maybe stupid Post subject: Line Breaks |
 |
|
|
|
for a long time, ive tried to replace bad line breaks, but i have never succeeded.
I use notepad to edit a lot o crap, because its 100x faster then anything else.
but sometimes, the linebreaks are bad, and display a square instead...
anyone know how to fix this?
ive even tried using a hex editor... _________________ SSC Distension Owner
SSCU Trench Wars Developer |
|
Back to top |
|
 |
Samapico No, these DO NOT look like penises, ok?

Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Thu Dec 18, 2008 12:30 am Post maybe stupid Post subject: |
 |
|
|
|
First of all... notepad for search and replace stuff?
Get Programmer's notepad, or some other similar 'advanced' notepad-like program. You can do much better search-replace with patterns and stuff.
And... what kind of line breaks are you talking about? Line breaks in what? I think line breaks are a bit different on windows than on unix or something... _________________ (Insert a bunch of dead links here) |
|
Back to top |
|
 |
k0zy Server Help Squatter

Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: Thu Dec 18, 2008 4:09 am Post maybe stupid Post subject: |
 |
|
|
|
Notepad++ does a good job converting line breaks. _________________ It's a shark! Oh my god! Unbelievable! |
|
Back to top |
|
 |
Cheese Wow Cheese is so helpful!

Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Thu Dec 18, 2008 10:38 am Post maybe stupid Post subject: |
 |
|
|
|
a line break is what seperates THIS from
THIS.
notepad failed to replace because you cant paste line breaks into the replace field |
|
Back to top |
|
 |
Samapico No, these DO NOT look like penises, ok?

Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Thu Dec 18, 2008 12:22 pm Post maybe stupid Post subject: |
 |
|
|
|
I know what a line break is... but I mean... Where and how do you get so many line breaks to replace? The way you say it it sounds like whatever you write on your computer ends up with screwed up line breaks... Is it word documents? Or any other text document? You switching OS a lot or something?
But yeah.. Programmer's notepad allows you to search/replace line breaks, and notepad++ probably can too |
|
Back to top |
|
 |
Cheese Wow Cheese is so helpful!

Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Thu Dec 18, 2008 3:24 pm Post maybe stupid Post subject: |
 |
|
|
|
notepad++ helped, turns out that the squares are appearing in notepad whenever it attempts to view a file made by a poorly made program, which only uses a 'line feed' as a line break instead of the proper 'carrage return+line feed'
so how can i rig up a search+replace for these?
it simply cant be copy+paste'd into the replace field...
---edit---
i was successful in getting the LF into the search field
i was unsuccessful in getting the CRLF into the replace field
in BOTH n++ and pN, if you claim to have a way to do so, please note the steps to get there...
---edit2---
as it turns out, unix operating systems use a single line feed as a line break, while windows uses both a carriage return AND a line feed as a line break, causing it to display the incomplete LF as a single square character.
pN offers a simple switch from unix->windows
sama: i have been dealing with this crap every time i have to look at a unix document, apparently (someone else made, i like windows, because thats how i roll)
sama wins 500 e-creds, sry bob dole |
|
Back to top |
|
 |
Samapico No, these DO NOT look like penises, ok?

Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Thu Dec 18, 2008 5:35 pm Post maybe stupid Post subject: |
 |
|
|
|
yeah, I should have mentioned that feature of PN before  |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Dec 18, 2008 7:19 pm Post maybe stupid Post subject: |
 |
|
|
|
just a sidenote, i use pspad for unix-windows files all the time, and it works great; just click the UNIX/WIN text on the status bar to switch file types. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
k0zy Server Help Squatter

Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: Fri Dec 19, 2008 5:31 am Post maybe stupid Post subject: |
 |
|
|
|
You don't have to use Search&Replace to do it in Notepad++.
There's an option in the "Format" menu do it, i think.
I forgot what it's called as I switched to gVim after my PC broke down.
"Conver to UNIX" or something.
You can also convert the file to enother encoding really easily. |
|
Back to top |
|
 |
|