Fix formatting

This commit is contained in:
Dominik Kundel 2025-08-08 17:54:48 -07:00 committed by GitHub
parent 8a4645f0f9
commit ee2a337dad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -836,7 +836,9 @@ impl Render<Message> for HarmonyEncoding {
// finally content type
if let Some(content_type) = &message.content_type {
// <|constrain|> is a unique case which needs to be tokenized as a special token
if let Some(constrain_marker) = self.mapped_format_token(FormattingToken::ConstrainedFormat) {
if let Some(constrain_marker) =
self.mapped_format_token(FormattingToken::ConstrainedFormat)
{
if content_type.starts_with(constrain_marker) {
// Render the space, then the constrain marker as a special token, then the rest as text (if any)
self.render_text_into(" ", into)?;