There are 4 updates, 1 comment.
 
 
Confluence / cid:jira-generated-image-avatar-8be2d1f7-6a80-48aa-a065-8e92da0e5690 CONFLUENCE-34 Closed

Styles are not applied in <pre> tags in XWiki

 
View issue   ·   Add comment
 

4 updates

 
cid:jira-generated-image-avatar-a7b6eb16-2ebc-4c13-8616-5390d0e9bf35 Changes by Raphaël Jakse on 12/Jun/25 08:14
 
Attachment: xwiki2.png
Assignee: Raphaël Jakse
Resolution: Invalid
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-a7b6eb16-2ebc-4c13-8616-5390d0e9bf35 Raphaël Jakse on 12/Jun/25 08:16
 

Images from the forum post disappeared because of a domain name change, reposting them:

Confluence: 43729_confluence.png

XWiki:

43730_xwiki.png

The attachment doesn't include the lorem ipsum paragraph between the two code blocks which are inside tables. There is an empty paragraph between the two tables, and this paragraph does have a weird look, but this look is caused by the presence of the "highlight scss" class attribute, which is in the original source and carried over.

As for the code block that seems highlighted in confluence and not in XWiki:

Confluence:

43732_confluence2.png

XWiki:

43734_xwiki2.png

The code in confluence only seems highlighted because it is in a <th> cell, to which confluence happens to apply a grey background, which we don't.

<h3>Import :</h3><p><br /></p><table class="wrapped"><colgroup><col /></colgroup><tbody><tr><th><p>@import &quot;..//..//CommonColours.scss&quot;;</p><p>@import &quot;mycolors.scss&quot;;</p><pre class="highlight scss"><code><span class="nt">body</span> <span class="p">{</span>[...] 

I believe things are working as intended and that there's not much we can do with such content that needs to be manually fixed.

Thanks for the report, I'm closing this, please reopen if you think I'm mistaken.