From 3b916dcec3f365d9a18c565d9d6eff5e2b3ea8ad Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Fri, 3 Jan 2020 10:45:51 -0800 Subject: [PATCH] Minor changes to share output (#886) * Make some tweaks to share output * adjust strings * one more tweak * Remove unneeded span --- src/Calculator/Resources/en-US/Resources.resw | 6 +++--- .../GraphingCalculator/GraphingCalculator.xaml.cpp | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Calculator/Resources/en-US/Resources.resw b/src/Calculator/Resources/en-US/Resources.resw index 8182ac5..f4d5b1d 100644 --- a/src/Calculator/Resources/en-US/Resources.resw +++ b/src/Calculator/Resources/en-US/Resources.resw @@ -3912,15 +3912,15 @@ Used on the dismiss button of the share action error dialog. - Look what I graphed. + Look what I graphed with Windows Calculator Sent as part of the shared content. The title for the share. - Equations: + Equations Header that appears over the equations section when sharing - Variables: + Variables Header that appears over the variables section when sharing diff --git a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp index 137c676..8bd4fb4 100644 --- a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp +++ b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp @@ -218,7 +218,7 @@ void GraphingCalculator::OnDataRequested(DataTransferManager ^ sender, DataReque equationHtml << L""; equationHtml << resourceLoader->GetString(L"EquationsShareHeader")->Data(); equationHtml << L""; - equationHtml << L""; + equationHtml << L"
"; for (auto equation : equations) { @@ -237,8 +237,8 @@ void GraphingCalculator::OnDataRequested(DataTransferManager ^ sender, DataReque equationColorHtml << L"color:rgb(" << color.R.ToString()->Data() << L"," << color.G.ToString()->Data() << L"," << color.B.ToString()->Data() << L");"; - equationHtml << L""; } @@ -256,9 +256,9 @@ void GraphingCalculator::OnDataRequested(DataTransferManager ^ sender, DataReque { auto localizedSeperator = LocalizationSettings::GetInstance().GetListSeparator() + L" "; - rawHtml << L""; + rawHtml << L"
"; rawHtml << resourceLoader->GetString(L"VariablesShareHeader")->Data(); - rawHtml << L"
"; + rawHtml << L"
"; for (unsigned i = 0; i < variables->Size; i++) { @@ -277,7 +277,7 @@ void GraphingCalculator::OnDataRequested(DataTransferManager ^ sender, DataReque } } - rawHtml << L""; + rawHtml << L"
"; } rawHtml << L"

";
"; + equationHtml << L"
"; equationHtml << EscapeHtmlSpecialCharacters(expression)->Data(); equationHtml << L"