From aaeddcee2124efafc00f9a4a5555bdb70d64b5d1 Mon Sep 17 00:00:00 2001
From: Ferdinand Thiessen
Date: Fri, 12 Dec 2025 21:51:04 +0100
Subject: [PATCH] fix(federatedfilesharing): `pre` must not be a child of `p`
Fix the problem reported:
> [plugin vite:vue] apps/federatedfilesharing/src/components/PersonalSettings.vue: cannot be child of , according to HTML specifications.
> This can cause hydration errors or potentially disrupt future functionality.
`p` only allows inline elements, but pre is none.
We either need to use `div` instead of `p` or `code` instead of `pre`.
But in this case we want a block of code, so we use `div` and inner
`
`.
Signed-off-by: Ferdinand Thiessen
[skip ci]
---
.../src/components/PersonalSettings.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/apps/federatedfilesharing/src/components/PersonalSettings.vue b/apps/federatedfilesharing/src/components/PersonalSettings.vue
index 6dd79541b21..9af9acacd23 100644
--- a/apps/federatedfilesharing/src/components/PersonalSettings.vue
+++ b/apps/federatedfilesharing/src/components/PersonalSettings.vue
@@ -68,11 +68,11 @@
-
- {{ t('federatedfilesharing', 'HTML Code:') }}
+
+
{{ t('federatedfilesharing', 'HTML Code:') }}
-
{{ htmlCode }}
-
+
{{ htmlCode }}
+