Skip to content

Commit

Permalink
trim description which causing it to be rendered in <code> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kookxiang committed Jun 25, 2024
1 parent 149319f commit 6054389
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.Bangumi/Model/Episode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class Episode
public string? Duration { get; set; }

[JsonIgnore]
public string? Description => Configuration.ConvertLineBreaks ? DescriptionRaw?.ReplaceLineEndings(Constants.HtmlLineBreak) : DescriptionRaw;
public string? Description => Configuration.ConvertLineBreaks ? DescriptionRaw?.ReplaceLineEndings(Constants.HtmlLineBreak).TrimStart() : DescriptionRaw;

[JsonPropertyName("desc")]
public string? DescriptionRaw { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion Jellyfin.Plugin.Bangumi/Model/Subject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class Subject
public string? ChineseNameRaw { get; set; }

[JsonIgnore]
public string? Summary => Configuration.ConvertLineBreaks ? SummaryRaw?.ReplaceLineEndings(Constants.HtmlLineBreak) : SummaryRaw;
public string? Summary => Configuration.ConvertLineBreaks ? SummaryRaw?.ReplaceLineEndings(Constants.HtmlLineBreak).TrimStart() : SummaryRaw;

[JsonPropertyName("summary")]
public string? SummaryRaw { get; set; }
Expand Down

0 comments on commit 6054389

Please sign in to comment.