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.

3
  • With slightly more work, you could simply render it as an image with ditaa.org/ditaa Just an idea, if nothing else works ;) Aug 20, 2012 at 17:59
  • Then I send ASCII-art-render the image to send it via telnet (=
    – Gabriel
    Aug 27, 2012 at 13:06
  • 1
    Seems like Lynch tries to be smart, and doesn't let people choose how pasting should work. See this for example on how Lynch preserve too much of the original copy...
    – awe
    Aug 27, 2012 at 13:19

2 Answers 2

3
+100

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.

2
  • 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, 2012 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, 2012 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).

1
  • It works \o/ but the double copy/pasting and launching the word processor are a pain /:
    – Gabriel
    Aug 27, 2012 at 12:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .