[Laszlo-checkins] r11990 - openlaszlo/trunk/WEB-INF/lps/lfc/compiler

ptw@openlaszlo.org ptw at openlaszlo.org
Sat Dec 6 06:09:19 PST 2008


Author: ptw
Date: 2008-12-06 06:09:17 -0800 (Sat, 06 Dec 2008)
New Revision: 11990

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs
Log:
Change 20081206-ptw-O by ptw at dueling-banjos.home on 2008-12-06 09:06:08 EST
    in /Users/ptw/OpenLaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Review comments on r11986

Bugs Fixed:
LPP-7437  Emphasize Debug.debug over Debug.write in documentation examples (partial)

Technical Reviewer: lou at louiorio.com (pending)

Details:
    Fixed @shortdesc.  Used Lou's us/eu date example for positional args

Tests:
    build/inspect doc



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs	2008-12-06 14:08:57 UTC (rev 11989)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs	2008-12-06 14:09:17 UTC (rev 11990)
@@ -10,8 +10,6 @@
 
 
 /**
- * Formatted output support
- *
  * <p>See <xref linkend="LzText" /> and <xref linkend="LzDebugService+debug"
  * /> for additional
  * examples of how to present formatted text to the user
@@ -55,13 +53,14 @@
  * accessed in different orders.</p>
  * <example title="Positional arguments"><programlisting>
 <![CDATA[
-<canvas layout="axis: y; spacing: 10" height="80" width="100%">
+<canvas layout="axis: y; spacing: 10" height="60" width="100%">
   <debug y="5%" height="90%" />
   <script>
-    var direction = {forward: "%1$s before %2$s", backward: "%2$s after %1$s"};
+    var date = {us: "%2$d/%3$d/%1$d", eu: "%1$d-%2$02d-%3$02d"};
+    var now = new Date();
   </script>
-  <text oninit="this.format(direction.forward, 'first', 'last')" />
-  <text oninit="this.format(direction.backward, 'first', 'last');"/>
+  <text oninit="this.format(date.us, now.getFullYear(), now.getMonth(), now.getDay())" />
+  <text oninit="this.format(date.eu, now.getFullYear(), now.getMonth(), now.getDay());" />
 </canvas>
 ]]>
  * </programlisting></example>
@@ -80,6 +79,7 @@
 ]]>
  * </programlisting></example>
  *
+ * @shortdesc Formatted output support
  * @access public
  * @topic LZX
  * @subtopic Formatted Output



More information about the Laszlo-checkins mailing list