prompt-toolkit / prompt-toolkit/python-prompt-toolkit

HTML class - not producing the expected results, on Windows 7

Open
#775 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.6k
Forks
815
PR merge metrics
No merged PRs in 30d

Description

Using prompt_toolkit 2.07, with Python 3.6.6 (32-Bit) on Windows 7 Pro, 64-Bit

https://python-prompt-toolkit.readthedocs.io/en/stable/pages/printing_text.html#html

refers to this code

`from future import unicode_literals, print_function
from prompt_toolkit import print_formatted_text, HTML

print_formatted_text(HTML('This is bold'))
print_formatted_text(HTML('This is italic'))
print_formatted_text(HTML('This is underlined'))`

However, only plain text is displayed. Bold, italics, and underlined are not seen

In other words, the code aboce produces the same result as the code below.

print_formatted_text('This is bold') print_formatted_text('This is italic') print_formatted_text('This is underlined')

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked printing-text documentation example and reproduce it using prompt_toolkit 2.07, Python 3.6.6, and Windows 7. Compare the HTML-formatted output with the plain-text output; done means bold, italic, and underlined text are visibly rendered.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.