Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
With slightly more work, you could simply render it as an image with 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 for example on how Lynch preserve too much of the original copy... –  awe Aug 27 '12 at 13:19
add comment

2 Answers

up vote 2 down vote accepted
+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.

share|improve this answer
    
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
add comment

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).

share|improve this answer
    
It works \o/ but the double copy/pasting and launching the word processor are a pain /: –  Gabriel Aug 27 '12 at 12:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.