Pasting tables into the composer behaves oddly at times

https://github.com/discourse/discourse/pull/5389

4 Likes

OK it is merged, letā€™s try pasting from Excel, latest version, Windows 10:

test 1
data 0.5
sample 3

Nice worked perfectly :+1: no extra image nonsense. Next step: make it a cool Markdown table! :wink:

6 Likes

I actually used the paste-as-image all the time when explaining something or showing a complicated calculation. It does make sense.

e.g.:
image

But if you really want that you can go the intermediate route of GIMP etc. to get a bitmap.

Do you think even pasting it as markdown table canā€™t fulfill your needs?

3 Likes

PR created for Paste as Markdown Table and merged.

Edit: testing with excel table in Windows 10

test 1
data 0.5
sample 3
17 Likes

This is awesome, so magical :sparkler:

Thing Another Total
1 1 2
1 2 3
5

Can anyone test if pasting in from Numbers on Mac and Open Office / Libre Office works as well?

9 Likes
AAAA ZZZZ
A 1
B 2
C 3
AVG 2

LibreOffice on Linux is :ok_hand:

This is crazy useful in some types of forums. AWESOME!

5 Likes

Apple Numbers:

Table title
Row 1 Data 1
Row 2 Data 2
Row 3 Data 3

Google Docs:

Table title
Row 1 Data 1
Row 2 Data 2
Row 3 Data 3

6 Likes

@vinothkannans looks like both of the above may need some refinements (Numbers and Google docs), do you have a Mac to test?

4 Likes
Header 1 Header 2
Bold ā“­
Italics Yellow BG
Underlined RED

OK, looks like formatting is not included. A pityā€¦ But what a GREAT and WONDERFUL feature this is!!!

3 Likes

Just Table in Microsoft Word:

Header 1 Header 2
Row 1 Row 1.1
Row 2 Row 2.2

Yay!

Whole doc from Word with heading and table:

My Heading

The following is an awesome table outlining what I just described:
Header 1 Header 2
Row 1 Row 1.1
Row 2 Row 2.2

Another paragraph of text after the table.

Nope.

1 Like

I donā€™t have Mac to test. I guess if I fix Google Docs it will be fixed there too.

Edit: Now it is working for Google Spreadsheet tables too. Can anyone re-test it on Apple Numbers?

test 1
data 0.5
sample 3
8 Likes

A table inside Google Docs will not work though, as it doesnā€™t copy as tab-delimited rows, but one cell on its own row after another.

Yes. My commit is yet supporting pasting in Google Docs or Tables inside Document files. As I said, it is only for Excel, Spreadsheet and Numbers.

For Docs please follow other topic HTML/RTF pasting

7 Likes
RAID Array Space Calculator Type 1 Type 2
Number of Arrays of this type: 9 3
Number of Disks in this type Array: 10 4
Number of Spares in this type Array: 0 0
Disk Capacity: (GB) 10000 2000
RAID Level: raidz3 10-2x
Usable Capacity / Array: 70000 4000
Usable Capacity (Array Total): 630000 12000

My canonical example looks pretty damn good, and took 5 seconds to refine into exactly how I wanted it to look (merging top two lines, adding italics). Well done @vinothkannans :clap:

11 Likes

I tried numbers before merging it was working

number sample:

Money In
Paycheck ā‚¬4 000
Additional income ā‚¬0
Total income ā‚¬4 000
8 Likes

Pasting from the clipboard when both an image and text are present seems to be causing issues again. Iā€™ll test it here with a table copied from LibreOffice (weā€™ve had similar reports with Excel):

synthfive@synth.com eurorack
image

A markdown image tag is being created when I paste the table into the composer:

synthfive@synth.com	eurorack
![image|205x17](upload://6O1dCT74X45mQmlBp54nm0GnrZK.png)
2 Likes

Hereā€™s my test case in Microsoft Word

Pasting that I get

And some text

Let me reverse the order (text first) and seeā€¦ same result. I am pressing ctrl+a to select the whole document, which is an image and a line of text.