Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Line breaks inside a description attribute? (5e ogl template but super basic question)

good old \n isnt working. Can someone help me make the three foods appear on separate lines please? &{template:npcaction} {{name=food}} {{rname=Tavern Menu}} {{description=food1 food2 food3}} also, any help on how i could have found this answer on my own appreciated.  it was frustrating to search everywhere i could think of and not find an answer. i feel pretty dumb right now.
good lord i just tried the solution so simple i overlooked it - i put a space after each and literally put them on new lines like &{template:npcaction} {{name=food}} {{rname=Tavern Menu}} {{description=food1 food2 food3 }}
1531750972
The Aaron
Pro
API Scripter
There may not be an answer.  You can try this: &{template:npcaction} {{name=food}} {{rname=Tavern Menu}} {{description=food1<br>food2<br>food3}} But it  may not work, it depends on the way the arguments are processed by the template system.
1531750993
The Aaron
Pro
API Scripter
Ah yes, that too. =D HAHAHAH.
1531751055
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Roll template fields can just use regular line breaks (aka hitting enter): &{template:npcaction} {{name=food}} {{rname=Tavern Menu}} {{description=food1 food2 food3}} The {{}} denotes something that can be multiline and still be part of the roll template.
Man do i feel dumb, thx community for super fast replies
1531756159
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Ha, I never realized there was an html way. I've always typed returns.
1531758252
The Aaron
Pro
API Scripter
Well, I don't know if the HTML way will work.  I was assuming the carriage returns didn't work because of CSS formatting in the eventual template, which is where the HTML breaks would work, if they made it though as <br> and didn't end up as <br> in the end.
Unless it has changed with the Text Editor update, you can only inject HTML code into the chat window through the API.