From e35d5c72d2cf0ae7ee875dc999ed5aeb95bb940d Mon Sep 17 00:00:00 2001 From: Ruslan Balanukhin Date: Tue, 14 Nov 2023 19:30:43 +0100 Subject: [PATCH] Rever CppSharp version as newer version eats function return comment kind (#286) Co-authored-by: Ruslan Balanukhin --- Directory.Packages.props | 2 +- .../Processing/FunctionProcessor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index bba73271..b93d1bc1 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,7 +6,7 @@ - + diff --git a/FFmpeg.AutoGen.CppSharpUnsafeGenerator/Processing/FunctionProcessor.cs b/FFmpeg.AutoGen.CppSharpUnsafeGenerator/Processing/FunctionProcessor.cs index d143c868..3ab474fe 100644 --- a/FFmpeg.AutoGen.CppSharpUnsafeGenerator/Processing/FunctionProcessor.cs +++ b/FFmpeg.AutoGen.CppSharpUnsafeGenerator/Processing/FunctionProcessor.cs @@ -204,7 +204,7 @@ private static string GetCommentString(BlockCommandComment comment) { return comment == null ? null - : string.Join(" ", comment.ParagraphComment.Content.OfType().Select(x => x.Text.Trim())); + : string.Join(" ", comment.ParagraphComment.Content.OfType().Select(x => x.Text.Trim()).Where(x => !string.IsNullOrWhiteSpace(x))); } private static string GetSha256(string text)