mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-06 01:21:18 -04:00
parent
761cb032d7
commit
d28e81f8dc
2 changed files with 4 additions and 7 deletions
|
@ -1,10 +1,10 @@
|
||||||
Author;Date;Content;Attachments;
|
Author;Date;Content;Attachments;
|
||||||
{{~ for message in Model.Messages -}}
|
{{~ for message in Model.Messages -}}
|
||||||
{{- message.Author.FullName }};
|
{{- }}"{{ message.Author.FullName }}";
|
||||||
|
|
||||||
{{- message.Timestamp | FormatDate }};
|
{{- }}"{{ message.Timestamp | FormatDate }}";
|
||||||
|
|
||||||
{{- message.Content | FormatContent }};
|
{{- }}"{{ message.Content | FormatContent }}";
|
||||||
|
|
||||||
{{- message.Attachments | array.map "Url" | array.join "," }};
|
{{- }}"{{ message.Attachments | array.map "Url" | array.join "," }}";
|
||||||
{{~ end -}}
|
{{~ end -}}
|
Can't render this file because it contains an unexpected character in line 9 and column 39.
|
|
@ -273,9 +273,6 @@ namespace DiscordChatExporter.Core.Services
|
||||||
|
|
||||||
private string FormatContentCsv(string content)
|
private string FormatContentCsv(string content)
|
||||||
{
|
{
|
||||||
// New lines
|
|
||||||
content = content.Replace("\n", ", ");
|
|
||||||
|
|
||||||
// Escape quotes
|
// Escape quotes
|
||||||
content = content.Replace("\"", "\"\"");
|
content = content.Replace("\"", "\"\"");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue