discourse/app
Krzysztof Kotlarek bd0b558a89
FIX: paste the spreadsheet to the composer (#11163)
* FIX: paste the spreadsheet to the composer

If we paste spreadsheet with the missing label we receive
`"	this \n1	2"`

If we trim whitespace at the beginning then our later calculation to determine if it is a table is incorrect:

```
      const columns = rows.map((r) => r.split("\t").length);
      const isTable =
        columns.reduce((a, b) => a && columns[0] === b && b > 1)
```

https://meta.discourse.org/t/pasting-from-spreadsheet-wont-work-if-corner-cell-is-empty/169443
2020-11-13 13:01:22 +11:00
..
assets FIX: paste the spreadsheet to the composer (#11163) 2020-11-13 13:01:22 +11:00
controllers FIX: Ensure staff can see /tag/none (#11208) 2020-11-12 12:21:53 +11:00
helpers UX: Use appropriate logo on static pages (#11211) 2020-11-12 10:50:55 -08:00
jobs FIX: when creating linked topics make sure they belong to same category (#11188) 2020-11-11 00:44:27 +05:30
mailers FIX: Ensure group SMTP and message builder always uses from address for Reply-To when IMAP is enabled (#11037) 2020-10-28 07:01:58 +10:00
models FEATURE: Implement edit functionality for post notices (#11140) 2020-11-11 14:49:53 +02:00
serializers UI: Blur review queue images. (#11187) 2020-11-11 14:09:42 -03:00
services FEATURE: Implement edit functionality for post notices (#11140) 2020-11-11 14:49:53 +02:00
views FEATURE: Add Google Universal Analytics v4 as an option (#11123) 2020-11-06 14:15:36 -06:00