Skip to content

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

@ReddyKilowatt

Description

@ReddyKilowatt

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions