samples/heredoc.js

changeset 962
ac62e33a99b0
parent 0
b1a7da25b547
     1.1 --- a/samples/heredoc.js	Tue Aug 19 20:43:03 2014 +0100
     1.2 +++ b/samples/heredoc.js	Wed Aug 20 10:25:28 2014 +0200
     1.3 @@ -2,22 +2,22 @@
     1.4  
     1.5  /*
     1.6   * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     1.7 - * 
     1.8 + *
     1.9   * Redistribution and use in source and binary forms, with or without
    1.10   * modification, are permitted provided that the following conditions
    1.11   * are met:
    1.12 - * 
    1.13 + *
    1.14   *   - Redistributions of source code must retain the above copyright
    1.15   *     notice, this list of conditions and the following disclaimer.
    1.16 - * 
    1.17 + *
    1.18   *   - Redistributions in binary form must reproduce the above copyright
    1.19   *     notice, this list of conditions and the following disclaimer in the
    1.20   *     documentation and/or other materials provided with the distribution.
    1.21 - * 
    1.22 + *
    1.23   *   - Neither the name of Oracle nor the names of its
    1.24   *     contributors may be used to endorse or promote products derived
    1.25   *     from this software without specific prior written permission.
    1.26 - * 
    1.27 + *
    1.28   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
    1.29   * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    1.30   * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    1.31 @@ -38,14 +38,14 @@
    1.32  
    1.33  var sender = "Buffy the Vampire Slayer";
    1.34  var recipient = "Spike";
    1.35 - 
    1.36 +
    1.37  print(<<END
    1.38 - 
    1.39 +
    1.40  Dear ${recipient},
    1.41 - 
    1.42 +
    1.43  I wish you to leave Sunnydale and never return.
    1.44 - 
    1.45 +
    1.46  Not Quite Love,
    1.47  ${sender}
    1.48 - 
    1.49 +
    1.50  END);

mercurial