Pasting tables into the composer behaves oddly at times

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

4 « J'aime »

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 « J'aime »

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 « J'aime »

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 « J'aime »

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 « J'aime »
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 « J'aime »

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 « J'aime »

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

4 « J'aime »
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 « J'aime »

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 « J'aime »

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 « J'aime »

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 « J'aime »
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 « J'aime »

I tried numbers before merging it was working

number sample:

Money In
Paycheck €4 000
Additional income €0
Total income €4 000
8 « J'aime »

Le collage depuis le presse-papiers lorsqu’une image et du texte sont présents semble à nouveau causer des problèmes. Je vais tester cela ici avec un tableau copié depuis LibreOffice (nous avons eu des rapports similaires avec Excel) :

synthfive@synth.com
teurorack
image

Une balise d’image markdown est créée lorsque je colle le tableau dans le compositeur :

synthfive@synth.com
teurorack
![image|205x17](upload://6O1dCT74X45mQmlBp54nm0GnrZK.png)
2 « J'aime »

Voici mon cas de test dans Microsoft Word

En collant, j’obtiens

Et du texte

Laissez-moi inverser l’ordre (texte d’abord) et voir… même résultat. J’appuie sur Ctrl+A pour sélectionner tout le document, qui est une image et une ligne de texte.