Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: Multiline strings in ASH (potential feature?)

  1. #11
    Join Date
    Aug 2009


    Since you clearly know what you're talking about, would you care to provide a patch that implements printf(string, ...) as an ASH primitive?

  2. #12
    Minion Bale's Avatar
    Join Date
    Jun 2008


    This feature was added in r16800.

    Add multi-line string support to ASH.

    In order to specify a multi-line string, you must explicitly escape the
    end-of-line by placing a backslash (\) at the end of the line.

    Note that as a consequence of how the parser is written, it will trim all
    leading and trailing whitespace for each of these lines via Java's
    String.trim() method. Previously, this was irrelevant in the context of ASH
    strings, but now that ASH strings can span multiple lines, it is worth
    mentioning. If you want to have whitespace at the beginning of the line,
    just escape the first character of the line.

    by heeheehee on 2016-03-23 12:55:11

    M /src/net/sourceforge/kolmafia/textui/ (view) (diff)
    Originally Posted by RSS Bot View Post

  3. #13
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    The Unseelie Court


    This thread. Which was never a Feature thread in the Bugs forum, so I didn't find it while searching there.

    OK, thanks for this. This suits my needs.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

Posting Permissions

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