FIX: Misalignment of table after edit (#30)
See Meta bug report: https://meta.discourse.org/t/table-builder/236016/54
This commit is contained in:
parent
879140b8ce
commit
7e65777187
|
@ -200,7 +200,7 @@ export default class SpreadsheetEditor extends Component {
|
||||||
if (tableToEdit.length > 1) {
|
if (tableToEdit.length > 1) {
|
||||||
editedTable = raw.replace(tableToEdit[tableId], newRaw);
|
editedTable = raw.replace(tableToEdit[tableId], newRaw);
|
||||||
} else {
|
} else {
|
||||||
editedTable = raw.replace(findTableRegex(), newRaw);
|
editedTable = raw.replace(tableToEdit[0], newRaw);
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace null characters
|
// replace null characters
|
||||||
|
|
Loading…
Reference in New Issue