7

Multiple spaces are replaced by a single space character. Too bad when doing things as such:

|#|Name     |
|-+---------|
|1|John Paul|
|2|John     |
|3|Robert   |
|4|Jimmy    |

Edit: This kind of output is generated (via telnet) by code of mine, so I can change it.

Gabriel
  • 364
  • 3
  • 15
  • With slightly more work, you could simply render it as an image with http://ditaa.org/ditaa/ Just an idea, if nothing else works ;) – Oliver Salzburg Aug 20 '12 at 17:59
  • Then I send ASCII-art-render the image to send it via telnet (= – Gabriel Aug 27 '12 at 13:06
  • 1
    Seems like Lynch tries to be smart, and doesn't let people choose how pasting should work. See [this](http://superuser.com/questions/427542/how-can-i-paste-text-without-format-in-a-lync-chat-window) for example on how Lynch preserve too much of the original copy... – awe Aug 27 '12 at 13:19

2 Answers2

3

You could try replacing the spaces with non breaking spaces. A simple way to get a non breaking space is holding 'Alt' and typing '255'.
I am not entirely sure if all search&replace dialogues work with that, maybe you need to use an additional editor.

Michael K
  • 3,428
  • 4
  • 25
  • 44
  • I'd have to set the output of the program where I copy from from ' ' to \255. That seems like less pain when copy/pasting, but I wonder how word processors, outlook and other stuff will behave. Will try it before giving the thumbs up (: – Gabriel Aug 27 '12 at 12:23
  • Ok, when compiling, VStudio transforms ' 's (ALT-255) and '\255's into 0xA0 which is the ISO/IEC 8859 code for non-breaking space. But then windows shows it as the ascii 'á'. I couldn't find how to prevent VS to do it, so I had to use (char)255 instead. Then it worked. – Gabriel Aug 27 '12 at 13:03
2

If you go through a word processor that uses formatted text, and paste it there (like MS Word). Then set the font to "Courier New", line/paragraph spacing to 0, and then copy it into Lynch.

It seems like Lynch removes the extra spaces when the copied text is plain text, but if the copied text is formatted, it keeps everything as the original.


In this case, you have the alternative to make it as a table in Word, and copy the entire table. This will work since Lynch will support table display with all formatting. This way, you can have a nice font as well (no need for mono-space font).

awe
  • 1,100
  • 4
  • 15
  • 31