1. #1

    How to add new line in story or table fields?

    How do I add lines WITHIN a cell for a table (CTRL+6), or within a single story element (CTRL+3)?

    I have seen this in a table an officially released module; not sure about stories. I searched the wiki, can't seem to find an example of how to do it. Does it require manually editing the XML?

    "Enter" adds a new row within tables, and takes you out of a story box.

    Examples:

    For tables, I want:

    1 Monster A
    Monster B
    Monster C
    Monster D
    2 Monster E

    instead of:

    1 Monster A, Monster B, Monster C, Monster D
    2 Monster E

    or:

    1 Monster A
    Monster B
    Monster C
    Monster D
    2 Monster E


    And, for Story I want:

    Poem line 1,
    Poem line 2,
    Poem line 3.

    instead of:

    Poem line 1, Poem line 2, Poem line 3.

    or:

    Poem line 1,

    Poem line 2,

    Poem line 3.


    Any ideas?
    Thanks!
    Join my DCC RPG Road Crew via Fantasy Grounds! info @ https://www.indygaming.com/roadcrew/

    "Why do squares have more sides than triangles?"

  2. #2
    Right click and add table

    1 [Control-Tab] Monster A [Enter]
    [Control-Tab] Monster B [Enter]
    [Control-Tab] Monster C [Enter]
    [Control-Tab] Monster D [Enter]
    2 [Control-Tab] Monster E [Enter]

  3. #3
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    10,478
    For the tables you are limited to one line per cell unless you have a bunch of text which will get formatted just like a paragraph. So you can't have a one cell to the left and then multiple single lines in the next cell. So you can't have what you are looking for in your first picture.

    For line breaks inside a chat frame you are going to have to go into the XML and add those in manually. Add at the end of each sentence that you want a line break.
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea to the wish list http://fg2app.idea.informer.com/

  4. #4

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    1,667
    Blog Entries
    7
    Anytime you want to force a line break, you have to edit the XML and add an ASCII 13 character. Like for your first table example, you'd do:

    (I haven't figured out how to correctly escape ASCII codes in BBCODE yet, so substitute these "#13" for the actual ASCII 13 code)
    Code:
    <td>Monster A#13Monster B#13Monster C#13Monster D</td>
    The same would apply to your poem:
    Code:
    <p>Poem line 1,#13Poem Line 2,#13Poem line 3</p>
    As you're seeing, a single ASCII 13 only breaks to the next line. If you want to simulate a paragraph break, such as in <frame> 'boxed text' you'd use two ASCII 13s to do that, like so:
    Code:
    <frame>Boxed Text Paragraph 1 Lorem ipsum dolor sit amet, no usu natum efficiendi. At cum malorum oportere, causae dolorum pri id. Nec vituperata efficiendi ad, eu cum hendrerit scriptorem, sea ex elitr consul. Malorum nostrum antiopam ea sit, id mazim aperiam vix. Liberavisse signiferumque has ad. Ex quo detraxit tincidunt, blandit prodesset argumentum ea sit.#13#13Boxed Text Paragraph 2 Et sit paulo epicurei honestatis, cu quot nulla perfecto vim, eros atomorum scripserit mel at. Nec cu ferri timeam assueverit, his te partem latine expetendis, ius erroribus instructior in. Id sed hendrerit omittantur, no pro habeo constituto conclusionemque, et his periculis reprimique eloquentiam. Adhuc temporibus pro at, ad everti hendrerit definiebas nam. Vero prima quaestio eam ne. Iusto signiferumque cu usu.</frame>
    Last edited by Talyn; April 22nd, 2019 at 20:37.

  5. #5
    Quote Originally Posted by Zacchaeus View Post
    For the tables you are limited to one line per cell unless you have a bunch of text which will get formatted just like a paragraph. So you can't have a one cell to the left and then multiple single lines in the next cell. So you can't have what you are looking for in your first picture.

    For line breaks inside a chat frame you are going to have to go into the XML and add those in manually. Add at the end of each sentence that you want a line break.
    So, I don't know if this is the intended effect, but I found that
    &#xA; works both as a line break for tables and for story (when entered manually into the aXML). Since I'm not experienced with XML, I found a few different codes when searching, this is the only one that's worked


    [Edit] Correction: for chat, it shows the way I intend within the text a story page, but when I click the message bubble, it only outputs the first line into the chat box.
    Quote Originally Posted by Talyn View Post
    Anytime you want to force a line break, you have to edit the XML and add an ASCII 13 character.


    Also - Sorry, I posted this probably right when the prior post was placed. Thanks, I'll check this out next!
    Last edited by TheSwartz; April 22nd, 2019 at 20:54.
    Join my DCC RPG Road Crew via Fantasy Grounds! info @ https://www.indygaming.com/roadcrew/

    "Why do squares have more sides than triangles?"

  6. #6
    Quote Originally Posted by Talyn View Post
    Anytime you want to force a line break, you have to edit the XML and add an ASCII 13 character. Like for your first table example, you'd do:
    Quote Originally Posted by Talyn View Post

    (I haven't figured out how to correctly escape ASCII codes in BBCODE yet, so substitute these "#13" for the actual ASCII 13 code)
    OK. yes, this works for both tables and chat. And, ya, I'm not sure how to post it correctly, but I'm using what I found here: https://www.rapidtables.com/code/text/ascii/ascii-enter.html

    Thanks!

    Join my DCC RPG Road Crew via Fantasy Grounds! info @ https://www.indygaming.com/roadcrew/

    "Why do squares have more sides than triangles?"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in