winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4c5f492411cf7574e82072e134ff182f0f0e9b81
parent aa23adc0e3a0606bfb33cd73f2236a876875a427
Author: chausner <15180557+chausner@users.noreply.github.com>
Date:   Tue,  4 May 2021 23:02:59 +0200

Trim ShortDescription and Description manifest fields (#927)

Co-authored-by: chausner <chausner@users.noreply.github.com>
Diffstat:
Msrc/AppInstallerCommonCore/Manifest/ManifestYamlPopulator.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/AppInstallerCommonCore/Manifest/ManifestYamlPopulator.cpp b/src/AppInstallerCommonCore/Manifest/ManifestYamlPopulator.cpp @@ -287,7 +287,7 @@ namespace AppInstaller::Manifest // Common fields across versions std::vector<FieldProcessInfo> result = { - { "Description", [this](const YAML::Node& value)->ValidationErrors { m_p_localization->Add<Localization::Description>(value.as<std::string>()); return {}; } }, + { "Description", [this](const YAML::Node& value)->ValidationErrors { m_p_localization->Add<Localization::Description>(Utility::Trim(value.as<std::string>())); return {}; } }, { "LicenseUrl", [this](const YAML::Node& value)->ValidationErrors { m_p_localization->Add<Localization::LicenseUrl>(value.as<std::string>()); return {}; } }, }; @@ -336,7 +336,7 @@ namespace AppInstaller::Manifest { "License", [this](const YAML::Node& value)->ValidationErrors { m_p_localization->Add<Localization::License>(value.as<std::string>()); return {}; } }, { "Copyright", [this](const YAML::Node& value)->ValidationErrors { m_p_localization->Add<Localization::Copyright>(value.as<std::string>()); return {}; } }, { "CopyrightUrl", [this](const YAML::Node& value)->ValidationErrors { m_p_localization->Add<Localization::CopyrightUrl>(value.as<std::string>()); return {}; } }, - { "ShortDescription", [this](const YAML::Node& value)->ValidationErrors { m_p_localization->Add<Localization::ShortDescription>(value.as<std::string>()); return {}; } }, + { "ShortDescription", [this](const YAML::Node& value)->ValidationErrors { m_p_localization->Add<Localization::ShortDescription>(Utility::Trim(value.as<std::string>())); return {}; } }, { "Tags", [this](const YAML::Node& value)->ValidationErrors { m_p_localization->Add<Localization::Tags>(ProcessStringSequenceNode(value)); return {}; } }, };