« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/transformContent.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/transformContent.js')
-rw-r--r--src/content/dependencies/transformContent.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index 243ab502..ad7530fe 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -302,7 +302,14 @@ export default {
 
   slots: {
     mode: {
-      validate: v => v.is('inline', 'multiline', 'lyrics', 'single-link'),
+      validate: v => v.is(...[
+        'inline',
+        'multiline',
+        'lyrics',
+        'contributors',
+        'single-link',
+      ]),
+
       default: 'multiline',
     },
 
@@ -932,8 +939,10 @@ export default {
     // differently. Instead of having each line get its own paragraph,
     // "adjacent" lines are joined together (with blank lines separating
     // each verse/paragraph).
+    //
+    // Also this formatting goes for contributors mode too.
 
-    if (slots.mode === 'lyrics') {
+    if (slots.mode === 'lyrics' || slots.mode === 'contributors') {
       // If it looks like old data, using <br> instead of bunched together
       // lines... then oh god... just use transformMultiline. Perishes.
       if (