Copier + Coller du texte de Discord dans Discourse déforme les sauts de paragraphe

Je souhaite copier et coller ce texte surligné de Discord vers Discourse :

Voici à quoi cela ressemble si je le fais :

Spitz 07/03/2024 18:43

Hell-o, Divers ! Je voulais prendre un moment cet après-midi pour vous informer tous que nous avons entendu vos préoccupations au cours des derniers jours concernant les apparitions d’ennemis, leur armure et la capacité de les éliminer. Comme nous l’avons déjà dit, nos équipes prennent toujours en compte les retours des joueurs et examinent comment nous pouvons ajuster le jeu pour garantir qu’il soit équitable, agréable et offre la meilleure expérience à tous. Je peux confirmer que nous étudions actuellement des modifications des taux d’apparition et des barres de vie des ennemis lourds, et que nous tenterons de les répartir davantage pour éviter de grosses vagues d’ennemis plus difficiles apparaissant en même temps, tout en les rendant un peu plus faciles à abattre. Ce changement devrait être déployé dans un correctif chaud futur — aucune date pour le moment. De plus, nous avons oublié de mentionner (oups) que l’EAT-17 et le fusil sans recul ne subissent plus de réduction de 50 % des dégâts lorsqu’ils touchent un ennemi blindé sous un « angle de ricochet » qui dévie le tir. Combiné aux ajustements à venir sur la santé et les taux d’apparition, cela devrait rendre les ennemis plus grands un peu moins fréquents, en faisant apparaître davantage d’ennemis « appâts » pour les soutenir, et devrait permettre aux joueurs d’abattre ces ennemis avec un seul tir bien placé. J’espère que cela réduira les cas de kiting infini et laissera moins de joueurs sans armes efficaces pour éliminer les ennemis plus difficiles. Merci comme toujours pour votre patience !

C’est juste un seul grand paragraphe.

Si je le colle d’abord dans un éditeur de texte (par exemple le Bloc-notes) puis que je copie-colle depuis là, cela ressemble à ceci :

Spitz — 07/03/2024 18:43
Hell-o, Divers ! Je voulais prendre un moment cet après-midi pour vous informer tous que nous avons entendu vos préoccupations au cours des derniers jours concernant les apparitions d’ennemis, leur armure et la capacité de les éliminer. Comme nous l’avons déjà dit, nos équipes prennent toujours en compte les retours des joueurs et examinent comment nous pouvons ajuster le jeu pour garantir qu’il soit équitable, agréable et offre la meilleure expérience à tous.

Je peux confirmer que nous étudions actuellement des modifications des taux d’apparition et des barres de vie des ennemis lourds, et que nous tenterons de les répartir davantage pour éviter de grosses vagues d’ennemis plus difficiles apparaissant en même temps, tout en les rendant un peu plus faciles à abattre. Ce changement devrait être déployé dans un correctif chaud futur — aucune date pour le moment.

De plus, nous avons oublié de mentionner (oups) que l’EAT-17 et le fusil sans recul ne subissent plus de réduction de 50 % des dégâts lorsqu’ils touchent un ennemi blindé sous un « angle de ricochet » qui dévie le tir. Combiné aux ajustements à venir sur la santé et les taux d’apparition, cela devrait rendre les ennemis plus grands un peu moins fréquents, en faisant apparaître davantage d’ennemis « appâts » pour les soutenir, et devrait permettre aux joueurs d’abattre ces ennemis avec un seul tir bien placé. J’espère que cela réduira les cas de kiting infini et laissera moins de joueurs sans armes efficaces pour éliminer les ennemis plus difficiles.

Merci comme toujours pour votre patience !

Ce qui est ce que je veux, car cela préserve les sauts de paragraphe.

Je ne sais pas si c’est la faute de Discourse, de Discord ou de Windows dans ce processus. Mais cela arrive. J’ai testé cela dans les dernières versions de Firefox et de MS Edge, et la même chose se produit, donc je ne pense pas que ce soit le navigateur.

Si j’utilise quelque chose comme ClipView ou InsideClipboard, je peux voir ce qui suit.

1, 7, 13 font tous ce que vous attendez :

49412 HTML ressemble à ceci :

Version:0.9
StartHTML:0000000185
EndHTML:0000012902
StartFragment:0000000221
EndFragment:0000012866
SourceURL:https://discord.com/channels/1102970375731691612/1102974129734434919
<html>
<body>
<!--StartFragment--><h3 class="header__39b23" aria-labelledby="message-username-1215369280980394024 message-timestamp-1215369280980394024" style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: normal; font-family: &quot;gg sans&quot;, &quot;Noto Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; vertical-align: baseline; display: block; position: relative; line-height: 1.375rem; min-height: 1.375rem; color: var(--text-muted); white-space: break-spaces; overflow: hidden; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(49, 51, 56); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><span id="message-username-1215369280980394024" class="headerText_f47574 hasRoleIcon_b0c680" style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;"><span class="username_d30d99 desaturateUserColors_b72bd3 clickable_d866f1" aria-expanded="false" role="button" tabindex="0" style="margin: 0px; padding: 0px; border: 0px; font-weight: 500; font-style: inherit; font-family: inherit; font-size: 1rem; vertical-align: baseline; outline: 0px; line-height: 1.375rem; color: rgb(155, 89, 182); display: inline; position: relative; overflow: hidden; flex-shrink: 0;">Spitz</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;"><span class="" role="button" tabindex="0" style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;"><img alt="" aria-label="Role icon, Community Manager" class="roleIcon__59ca1 roleIcon_d491aa clickable__08c77" height="20" src="upload://7PldHMXYonxiDX9vkSjyhksRtWN.webp" width="20" style="margin: 0px 0px 0px 0.25rem; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: top; display: inline-block; overflow: hidden; object-fit: contain; cursor: pointer; position: relative; top: 1px; height: calc(4px + 1rem); width: calc(4px + 1rem); text-indent: -9999px;"></span></span></span><span class="timestamp_cdbd93 timestampInline__470e0" style="margin: 0px 0px 0px 0.25rem; padding: 0px; border: 0px; font-weight: 500; font-style: inherit; font-family: inherit; font-size: 0.75rem; vertical-align: baseline; outline: 0px; display: inline-block; height: 1.25rem; cursor: default; pointer-events: auto; line-height: 1.375rem; color: var(--text-muted);"><time aria-label="7 March 2024 18:43" id="message-timestamp-1215369280980394024" datetime="2024-03-07T18:43:37.055Z"><i class="separator__3f416" aria-hidden="true" style="position: absolute; opacity: 0; display: inline-block; font-style: normal;"> — </i>07/03/2024 18:43</time></span></h3><div id="message-content-1215369280980394024" class="markup_a7e664 messageContent__21e69" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: calc(-1*var(--custom-message-margin-left-content-cozy)); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: var(--custom-message-margin-left-content-cozy); border: 0px; font-weight: 400; font-style: normal; font-family: &quot;gg sans&quot;, &quot;Noto Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; vertical-align: baseline; outline: 0px; line-height: 1.375rem; white-space: break-spaces; overflow-wrap: break-word; user-select: text; color: var(--text-normal); text-indent: 0px; position: relative; overflow: hidden; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(49, 51, 56); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">Hell</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">-o</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">, Divers</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">! I wanted to take a moment this afternoon to let you all know that we</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">'ve heard your concerns over the last few days regarding enemy spawns</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">, enemy armor</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">, and the ability to kill these enemies</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">. As we</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">'ve said before</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">, our teams are always taking in player feedback and looking at how we can tweak the game to ensure that it is fair</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">, enjoyable and provides the best experience for everyone</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">. </span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">

I can confirm that we</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">'re currently looking at changes to the spawn rates and health pools of heavy enemies</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">, and will be attempting to spread them out more to prevent large spikes of tougher mobs appearing at the same time</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">, as well as making them a bit easier to bring down</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">. This change should go out in a future hotfix </span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">- no date as of yet</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">.</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">

In addition</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">, we forgot to mention </span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">(oops</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">) that the EAT</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">-17 and Recoilless Rifle no longer suffer from a 50</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">% damage decrease when hitting an armored enemy at a </span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">'glance angle</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">' that deflects the shot</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">. Combined with the upcoming adjustment to health and spawn rates</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">, this should make the larger enemies a bit less common</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">, instead spawning more </span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">'chaff</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">' enemies to support them</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">, and should allow players to bring these enemies down with a single well</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">-placed shot</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">. Hopefully this leads to less instances of endless kiting and players being left without any effective weaponry to kill harder enemies</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">.</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">

Thanks as always for your patience</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; font-size: 16px; vertical-align: baseline; outline: 0px;">!</span></div><!--EndFragment-->
</body>
</html>

Donc je pense que cela pourrait être la faute de Discord de ne pas avoir mis de balises <p> ? Ou est-ce la faute de votre navigateur ou de Discourse de prendre l’HTML ?

1 « J'aime »

FYI Discord Bot Construction Kit 🤖 a une commande de copie de message qui va au-delà de la simple copie du message et attribue également le message à la bonne personne.

1 « J'aime »

Cela ressemble à un bug Discord pour moi.

HTML mange les sauts de ligne au petit-déjeuner, si vous voulez des sauts de ligne, vous devriez utiliser <br> ou garder les choses dans un <p>

Je pensais que nous prenions en charge un raccourci ninja MAJ-CTRL-P qui colle du texte au lieu du HTML → Markdown.

1 « J'aime »

Après avoir posté les informations du presse-papiers, j’ai pensé la même chose, j’ai donc également déposé un bug là-bas (#43764105). Je suppose que le HTML qu’ils produisent n’est pas bien formé, donc nous ne pouvons pas nous attendre à ce que Discourse le gère. N’hésitez pas à « fermer » ce sujet de bug.

Merci de m’avoir parlé du collage magique ! :slight_smile:

1 « J'aime »

Pour information : Ils vous blâment :wink:

Salut Pod,

Merci d’avoir pris le temps de nous contacter !

Nous comprenons votre préoccupation concernant le format HTML lors de la copie et du collage depuis Discord.

Nous avons examiné votre problème, et il semble que différentes applications gèrent le texte multiligne copié différemment. Certaines conservent l’espacement des lignes d’origine (comme Notepad ou Google Spreadsheet), tandis que d’autres non (comme Google Docs ou Discourse, comme vous l’avez noté).

Notre objectif est de garantir que nos fonctionnalités fonctionnent sur plusieurs plateformes et applications. Cependant, comme chaque plateforme et application gère ces fonctions différemment, cela peut être difficile.

J’espère que cela résume la situation ! Mais n’hésitez pas à me faire savoir si vous avez besoin d’autre chose !

Cordialement,
Nico

Il ne semble pas que Discord ou Discourse vont changer, donc je suppose que je devrai juste me souvenir de faire CTRL+SHIFT+P pour faire un collage magique si jamais je copie depuis Discord à nouveau, et ce bug peut être là au cas où quelqu’un d’autre rencontrerait le problème.

(J’ai essayé de sauvegarder leur contenu CF_HTML dans un fichier et de le regarder, et il a les sauts de ligne dans Firefox, Chrome, Edge. Je ne connais pas assez le développement web pour savoir si ce qu’ils émettent est du HTML « valide », ou simplement du HTML qu’un navigateur rendra à contrecœur correctement parce qu’il l’interprète comme du HTML 1.1 ou quelque chose comme ça)

1 « J'aime »