jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
Append a newline to context before question

Without it, the context output glued with the options.
See T283488 ("* [[Mark Twain]] (1835−1910Option (<number> [1-19]").

Change-Id: Ibcf9146a1dc6dc3723cc977af8c189e95eb774e2
---
M pywikibot/userinterfaces/terminal_interface_base.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pywikibot/userinterfaces/terminal_interface_base.py b/pywikibot/userinterfaces/terminal_interface_base.py
index ceace54..c4abe8b 100755
--- a/pywikibot/userinterfaces/terminal_interface_base.py
+++ b/pywikibot/userinterfaces/terminal_interface_base.py
@@ -401,7 +401,7 @@
for option in options:
if isinstance(option, OutputOption) \
and option.before_question:
- self.stream_output(option.out)
+ self.stream_output(option.out + '\n')
output = Option.formatted(question, options, default)
if force:
self.stream_output(output + '\n')

To view, visit change 693849. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ibcf9146a1dc6dc3723cc977af8c189e95eb774e2
Gerrit-Change-Number: 693849
Gerrit-PatchSet: 1
Gerrit-Owner: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged