Skip to content

Conversation

@YegorStepanov
Copy link
Contributor

@YegorStepanov YegorStepanov commented Oct 5, 2022

This PR adds escaping the Param data for the exporters only.
Currently, you can only pass \t, \n, other control characters throw an exception in the generated project).

Try Param["\0"] string Param (In the linked PR below I fix it).


Microsoft.CodeAnalysis.CSharp.SymbolDisplay.FormatLiteral(str, quote);
the naming is 10/10 😄. It escapes the non-displayed characters and emojis.


I don't escape the column.ColumnName, because that would require calling .EscapeSpecialCharacter() after every 'column.ColumName' (~20 times).

Fixes #1867
Fixes #1839

@YegorStepanov YegorStepanov changed the title Escape data for the exporters Escape Param data for the exporters Oct 5, 2022
Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @YegorStepanov !

@adamsitnik adamsitnik merged commit 95bb2aa into dotnet:master Oct 6, 2022
@AndreyAkinshin AndreyAkinshin added this to the v0.13.3 milestone Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trailing newline characters in input value break summary table Markdown output should escape the output

3 participants