Skip to content

Commit

Permalink
Strip newlines in TableDataCell (#3409)
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarenerd authored Jun 5, 2024
1 parent 0ad60f6 commit dd4621a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const TableDataCell = (props: TableDataCellProps) => {
return (
<div className={positronClassNames('text-container', props.column.alignment)}>
<div className='text-value'>
{props.dataCell.formatted}
{props.dataCell.formatted.replace(/\r/g, '\\r').replace(/\n/g, '\\n')}
</div>
</div>
);
Expand Down

0 comments on commit dd4621a

Please sign in to comment.