Page MenuHomePhabricator

Appending <<default>> color format does not work
Closed, ResolvedPublic

Description

color tags can be given to every logging functions like pywikibot.info():

msg can contain special sequences to create colored output. These consist of the color name in angle bracket, e. g. <<lightpurple>>. <<default>> resets the color.

The <<default>> tag should be appended to each line if not already given but unfortunately it is appended after the line feed. This leads to strange colored lines like shown below:

image.png (987×257 px, 30 KB)

Details

Related Changes in Gerrit:

Event Timeline

Xqt changed the task status from Open to In Progress.Jan 2 2025, 1:16 PM
Xqt triaged this task as Medium priority.

Change #1107954 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [FIX] Fix <<default>> color tag

https://gerrit.wikimedia.org/r/1107954

Change #1107954 merged by jenkins-bot:

[pywikibot/core@master] [FIX] Fix <<default>> color tag

https://gerrit.wikimedia.org/r/1107954