Solved! Use the following replace in the script: let spellDesc = getAttrByName( bCharID, `repeating_spells_${bspellID}_spell_description` ) || ""; spellDesc = spellDesc.replace(/(?:\r\n|\r|\n)/g, '<br>'); -------------------------------------------------------------------------------------------------- Apologies for posting again. The title might be confusing so I thought I'd illustrate what is happening. The character sheet I am using is for Advanced Dungeons & Dragons 1e. Again, the sheet works fine for me but I'm trying to make navigating it easier for my computer illiterate friends so that they don't have to scroll through it to find stuff. This has to do with displaying the description field of a spell by a spell caster. 1) Here is what is a screenshot of a player's 1st level spells. The details for the spell Phantasmal Force are opened. You can see the description beginning with "When this spell is cast..." 2) Here is a screenshot of the above spell details in the sendChat window I've scripted. The two words highlighted are where a line break (enter key) will be placed: 3) So, back to the character sheet. You can see where the line break has been entered as compared to 1, above: 4) And this is how the above affects the chat window. You can see that the text after the line break, AKA the second paragraph, appears outside the chat window and below: So I think that illustrates my issue. I'm hoping there's a solution. Here are the code snippets involved in the script. 5) This one shows how I am drawing the description from the character sheet. spellDesc , highlighted, is obtained using getAttrByName. The spell identifier, bspellID, is the spell's ID code: 6) The above and other spell characteristics, if they are not zero length strings, are added to a variable called bspellBody, highlighted below. bspellBody will be the spell description text shown in 2 and 4, above: 7) bspellBody is then given to the sendChat shown below which uses a formula, panel (modified from ROTTO's code from the Vince's 1e sheet group), to create the chat box: My Attempts So, going back to the screenshot at 6, above. I have enclosed the spellBody with <p>: bspellBody += "<p>" + spellDesc + "</p>"; This does not have any effect. I've tried enclosing it in a <div>: bspellBody += "<div style='text-align:left;padding: 2px 0;'>"; bspellBody += spellDesc; bspellBody += "</div>"; And this does not work, either. The Panel function I mentioned encloses bspellBody (as the variable body ): '<div style="background:#efe3cf;color:#1b1712;padding:3px;border-radius:6px;">' + body + '</div>' + Note that it already encloses bspellBody in a <div>, anyway I'm not sure if the above line can be altered to avoid the line break(s) from appearing outside the chat box or not. Any suggestions? I'm OK to leave the "malfunction" as it is, to be honest, but it would be nice to have it all enclosed in the sendChat chat box. Thanks. PS FWIW, this is the "flow" from an admin screen to the spell information. A lot of players don't bother to put anything in the spell info, which is fine. The image in the Spells List is one of a couple dozen based on whether the user is an MU/Illjusionist, Cleric, or Druid spell caster. The MU spells and the cantrips, and second level spells are just test things.