PDA

View Full Version : Answer: Why do the lines get combined when I copy paste from the gcli?



efilnikufecin
12-18-2006, 06:17 AM
A question I have been asked many times.

There are a few methods of addressing what happens when a user is typing a document and presses enter.
Some Macintosh computers put an invisible control character into the document called a carriage return or cr for short.
Most simple Windows based applications use 2 control characters called carriage return/line feed or cr/lf for short.
There are other methods based on the application running.

If kolmafia uses Macintosh format (or a format not listed), then when you copy the text from kolmafia to a windows application the text has no cr/lf combination (only cr is used) so the windows application recognizes everything pasted into it as 1 string. Other possibility: The control characters are just not there for some reason.

The simple explanation...kolmafia and the program you are pasting to speak 2 different languages which are close to the same, but different enough to make a mess of things.

I will be pointing others to this thread when the question is asked of me later, so if this answer is wrong please correct me.

Nightmist
12-18-2006, 08:47 AM
A workaround I found:
I just use a "paste special"->"paste as HTML formatted text" and it line breaks fine.

holatuwol
12-18-2006, 12:27 PM
The real reason is actually not so straightforward:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4988885

[hr]

Actually, I guess it is straightforward. Line breaks aren't line breaks -- they're spaces. Unfortunately, there's no clear way to fix this (as far as I know, anyway), but if there is, I'd certainly like to know about it. I keep investing hour after hour following the wrong path, and the lack of productivity is really, really disheartening.