Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Line Breaks

 
Post new topic   Reply to topic Printable version
 View previous topic  Weird symbol on google earth in Berlin Post :: Post Server (Machine) Help.  View next topic  
Author Message
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Thu Dec 18, 2008 12:13 am   Post maybe stupid    Post subject: Line Breaks Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Thu Dec 18, 2008 12:30 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Thu Dec 18, 2008 4:09 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

Notepad++ does a good job converting line breaks.
_________________
It's a shark! Oh my god! Unbelievable!
Back to top
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Thu Dec 18, 2008 10:38 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Thu Dec 18, 2008 12:22 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Thu Dec 18, 2008 3:24 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Thu Dec 18, 2008 5:35 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

yeah, I should have mentioned that feature of PN before tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Thu Dec 18, 2008 7:19 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Fri Dec 19, 2008 5:31 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 108 page(s) served in previous 5 minutes.

phpBB Created this page in 0.648457 seconds : 33 queries executed (79.8%): GZIP compression disabled