This issue has been created
There is 1 update, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-ef00e72b-3848-4005-9728-8ef5659d278a XWIKI-23580 Open

Using monospace syntax overflows when too long

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-c561514a-4a77-40f3-92de-94ba8c31045c Vincent Massol created this issue on 07/Oct/25 14:36
 
Summary: Using monospace syntax overflows when too long
Issue Type: cid:jira-generated-image-avatar-ef00e72b-3848-4005-9728-8ef5659d278a Bug
Affects Versions: 16.10.12
Assignee: Unassigned
Attachments: Screenshot 2025-10-07 at 12.02.57.png, Screenshot 2025-10-07 at 12.07.59.png
Components: Web - Templates & Resources
Created: 07/Oct/25 14:36
Priority: cid:jira-generated-image-static-major-8c00d4a2-7f8b-4b7d-b247-2aa37f672232 Major
Reporter: Vincent Massol
Description:

See for example:

_thumb_44236.png

And:

_thumb_44236.png

 
 

1 update

 
cid:jira-generated-image-avatar-c561514a-4a77-40f3-92de-94ba8c31045c Changes by Vincent Massol on 07/Oct/25 14:37
 
Description: See for example:

!Screenshot 2025-10-07 at 12.07.59.png|thumbnail!

And:

!Screenshot 2025-10-07 at 12.
07 02 . 59 57 .png|thumbnail!
 
 

1 comment

 
cid:jira-generated-image-avatar-c561514a-4a77-40f3-92de-94ba8c31045c Vincent Massol on 07/Oct/25 14:39
 

Michael Hamann said:

We configure monospace to use white-space: pre which prevents any line breaks inside it.

To me, something like white-space: pre-wrap would seem more sensible for the inline style (maybe not for code/pre.)
Was done in XWIKI-12257 - I assume without considering the full consequences of white-space: pre.

We could add something like

.monospace {
  /* Don't use 'pre' because we want the text to wrap for inline styling. */
  white-space: pre-wrap;
}

I mean after https://github.com/xwiki/xwiki-platform/blob/91a3e1e40ab38dfba09140721aafe7960ad40b89/xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/less/general.less#L81