Skip to content

Commit

Permalink
Fix dataframe line_breaks (#5930)
Browse files Browse the repository at this point in the history
* fix

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
dawoodkhan82 and gradio-pr-bot committed Oct 16, 2023
1 parent b67115e commit 3618238
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/weak-pants-run.md
@@ -0,0 +1,6 @@
---
"@gradio/dataframe": patch
"gradio": patch
---

fix:Fix dataframe `line_breaks`
3 changes: 3 additions & 0 deletions js/dataframe/shared/Table.svelte
Expand Up @@ -702,6 +702,7 @@
<EditableCell
{value}
{latex_delimiters}
{line_breaks}
datatype={Array.isArray(datatype) ? datatype[j] : datatype}
edit={false}
el={null}
Expand Down Expand Up @@ -743,6 +744,7 @@
bind:value={_headers[i].value}
bind:el={els[id].input}
{latex_delimiters}
{line_breaks}
edit={header_edit === i}
on:keydown={end_header_edit}
on:dblclick={() => edit_header(i)}
Expand Down Expand Up @@ -791,6 +793,7 @@
bind:el={els[id].input}
display_value={display_value?.[index]?.[j]}
{latex_delimiters}
{line_breaks}
{editable}
edit={dequal(editing, [index, j])}
datatype={Array.isArray(datatype) ? datatype[j] : datatype}
Expand Down

0 comments on commit 3618238

Please sign in to comment.