Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

SOX-78363: fix new line and quote formatting - #18

Closed
sarab-fairnow wants to merge 1 commit into
mainfrom
SOX-78363_fix_formatting
Closed

sarab-fairnow wants to merge 1 commit into
mainfrom
SOX-78363_fix_formatting

Conversation

@sarab-fairnow

Copy link
Copy Markdown
Collaborator

No description provided.

for risk_item in risk_items:
description = risk_item.get('description', '')
# Replace all newlines/tabs with a space and clean quotes
description = re.sub(r'[\r\n\t]+', ' ', description).strip()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we should be transforming the data. If this is being exported into CVS/TSV then the tabs/newlines should be escaped as part of the serialization. If the consumer of the CSV/TSV cannot handle properly escaped data - that is something they should fix.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good point. Using my DE brain too much. I will reach out to them

@sarab-fairnow
sarab-fairnow marked this pull request as draft November 7, 2025 15:03
@sarab-fairnow

Copy link
Copy Markdown
Collaborator Author

Closing as Dayforce will look into fixing the data on their end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants