From 5c996d09fd3806592f0fa5e4914bfc482e73c682 Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Fri, 20 Dec 2019 12:15:30 -0800 Subject: [PATCH 1/4] Make some tweaks to share output --- .../GraphingCalculator/GraphingCalculator.xaml.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp index 137c67646..1801caa68 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"

"; From 4aa6d1d4b4f4becac37764bf785839d393faf11d Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Fri, 20 Dec 2019 12:25:04 -0800 Subject: [PATCH 2/4] adjust strings --- src/Calculator/Resources/en-US/Resources.resw | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Calculator/Resources/en-US/Resources.resw b/src/Calculator/Resources/en-US/Resources.resw index e19f73a9e..920474792 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 From 79c3df154d9956b1d8334c991c4c7dcca624bd98 Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Fri, 20 Dec 2019 12:43:30 -0800 Subject: [PATCH 3/4] one more tweak --- .../Views/GraphingCalculator/GraphingCalculator.xaml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp index 1801caa68..537449185 100644 --- a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp +++ b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp @@ -258,7 +258,7 @@ void GraphingCalculator::OnDataRequested(DataTransferManager ^ sender, DataReque rawHtml << L"
"; rawHtml << resourceLoader->GetString(L"VariablesShareHeader")->Data(); - rawHtml << L"
"; + rawHtml << L"
"; for (unsigned i = 0; i < variables->Size; i++) { From 066dde325a85c406effb1a37f562b07cf9085f26 Mon Sep 17 00:00:00 2001 From: Pepe Rivera Date: Thu, 2 Jan 2020 16:18:54 -0800 Subject: [PATCH 4/4] Remove unneeded span --- .../Views/GraphingCalculator/GraphingCalculator.xaml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp index 537449185..8bd4fb46c 100644 --- a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp +++ b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp @@ -258,7 +258,7 @@ void GraphingCalculator::OnDataRequested(DataTransferManager ^ sender, DataReque 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"