Branch: refs/heads/XWIKI-24458 Home: https://github.com/xwiki/xwiki-platform Commit: 3d770e522302f92a393db5e050167558b575af7d https://github.com/xwiki/xwiki-platform/commit/3d770e522302f92a393db5e050167... Author: Vincent Massol <[email protected]> Date: 2026-06-05 (Fri, 05 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 A property with a custom display (e.g. the App Within Minutes Date and Title properties) was rendered through the wiki rendering pipeline, which renders the custom display content as a standalone document and thus wraps the result in a paragraph. As a consequence, displaying such a property in view mode (e.g. $doc.display('date1', 'view')) produced a value wrapped in an HTML paragraph, unlike standard properties which are displayed inline. PropertyClass#displayCustom now removes the wrapping top level paragraph when displaying a property in view mode, so that the value is displayed inline like the default displayView() output. The removal only happens when the rendered content consists of a single top level paragraph, leaving more complex custom displayers untouched, and template based displayers are not concerned since their output is not rendered as wiki content. This also fixes XWIKI-21846 (App Within Minutes page title displayer generating an unnecessary paragraph in view mode) which has the same root cause. 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