From e017bf964ecad56e64489fd678f18cc203f0f22d Mon Sep 17 00:00:00 2001 From: jhawkesworth Date: Tue, 13 Jun 2017 08:18:32 +0100 Subject: [PATCH] Small improvement to the way the powershell code lines render in win_say module (html rendering only, still does not break lines properly in ansible-doc) (#25624) --- lib/ansible/modules/windows/win_say.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/windows/win_say.py b/lib/ansible/modules/windows/win_say.py index 5cf59ead4fb..c9c765e6342 100644 --- a/lib/ansible/modules/windows/win_say.py +++ b/lib/ansible/modules/windows/win_say.py @@ -72,11 +72,17 @@ options: author: "Jon Hawkesworth (@jhawkesworth)" notes: - Needs speakers or headphones to do anything useful. - - To find which voices are installed, run the following powershell - Add-Type -AssemblyName System.Speech - $speech = New-Object -TypeName System.Speech.Synthesis.SpeechSynthesizer - $speech.GetInstalledVoices() | ForEach-Object { $_.VoiceInfo } - $speech.Dispose() + - | + To find which voices are installed, run the following powershell commands. + + Add-Type -AssemblyName System.Speech + + $speech = New-Object -TypeName System.Speech.Synthesis.SpeechSynthesizer + + $speech.GetInstalledVoices() | ForEach-Object { $_.VoiceInfo } + + $speech.Dispose() + - Speech can be surprisingly slow, so its best to keep message text short. '''