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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Line Break Kills Templates

It's just part of the coding, I know, but if you insert a line break somewhere in the middle of a template macro, it will kill the template. For example, I'm using a 5e character sheet and I wish to make a Class Action for the Monk's Open Hand Technique. I enter this into the description box: When you hit with Flurry of Blows, you may choose to have the target do one of the following: -Roll Dex save or fall Prone. -Roll Str save or be Pushed 15'. -Can't use Reactions until the end of your next turn. The output, then, becomes this. Of course, you can simply remove all line breaks... But then you get an ugly-looking blob of text. It would be even more pronounced if it was a long list of single words or two-word phrases. Again, I know you can avoid this by not putting in line breaks. However, this is not immediately obvious to a standard user and is allowed to happen quite easily since the text boxes for actions, descriptions, effects, etc. all allow you to make line breaks. And most people will probably do so in order to make their formatting look nicer, inadvertently breaking the template and wondering what went wrong.
You could build a roll template that has multiple lines in the description, and have multiple lines for the character sheet. Its not a great method, but it can work.
Well, this affects the default character sheet as well (which is what I was going by when making the example). Normal users won't have any way to edit the template. It doesn't make much sense to force someone to pay for Mentor status just to have a not-so-great workaround, which they would also have to learn how to do, and can only do if they happen to be the GM of that campaign.
1426892854
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
Currently roll templates don't support multi-line text inputs. It's something we're working on.