Branch: refs/heads/XWIKI-24458 Home: https://github.com/xwiki/xwiki-platform Commit: 60137b0fa11ea4f975c5ee587865c12680f8bbfa https://github.com/xwiki/xwiki-platform/commit/60137b0fa11ea4f975c5ee587865c... Author: Vincent Massol <[email protected]> Date: 2026-06-09 (Tue, 09 Jun 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/objects/classes/PropertyClass.java M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/objects/classes/PropertyClassTest.java Log Message: ----------- XWIKI-24458: Custom display of properties shouldn't return inline values in view mode * Address review feedback: - Replace the paragraph-detection regular expression with a simpler and cheaper indexOf/lastIndexOf check. - Strip the wrapping top level paragraph in all display modes (not only view), since the default displayers are inline in every mode and block level displayers don't match the single paragraph check anyway. - Strip the paragraph for template based displayers too (they can contain wiki syntax that gets wrapped in a paragraph), removing the special case. Co-Authored-By: Claude Opus 4.8 <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications