Modernize TextBuffer's GenHTML() function #2599

Closed
opened 2026-01-30 22:59:24 +00:00 by claunia · 1 comment
Owner

Originally created by @carlos-zamora on GitHub (Jul 5, 2019).

Summary of the new feature/enhancement

There's a bit of refactoring that needs to get done for this GenHTML() function. I'm moving it to TextBuffer in PR #1224. So after that goes in, it'll be fair game.

Proposed technical implementation details (optional)

Some of the work suggested by fcharlie and mauve:

  • change some std::string const to constexpr std::wstring_view
  • move some variables to point of first use
  • remove Hungarian notation NL.5: Avoid encoding type information in names
  • resize, format, resize again seems cumbersome. Look into using C++ streams instead
Originally created by @carlos-zamora on GitHub (Jul 5, 2019). # Summary of the new feature/enhancement There's a bit of refactoring that needs to get done for this `GenHTML()` function. I'm moving it to `TextBuffer` in PR #1224. So after that goes in, it'll be fair game. # Proposed technical implementation details (optional) Some of the work suggested by fcharlie and mauve: - change some `std::string const` to `constexpr std::wstring_view` - move some variables to point of first use - remove Hungarian notation [NL.5: Avoid encoding type information in names](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rl-name-type) - resize, format, resize again seems cumbersome. Look into using C++ streams instead
Author
Owner

@ghost commented on GitHub (Aug 27, 2019):

:tada:This issue was addressed in #2038, which has now been successfully released as Windows Terminal Preview v0.4.2382.0.🎉

Handy links:

@ghost commented on GitHub (Aug 27, 2019): :tada:This issue was addressed in #2038, which has now been successfully released as `Windows Terminal Preview v0.4.2382.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.4.2382.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2599