[MKDoc-commit] [1.6] filesize - fix formated/formatted mis-spelling

bruno at mkdoc.demon.co.uk bruno at mkdoc.demon.co.uk
Wed Sep 28 17:15:38 BST 2005


Log Message:
-----------
[1.6] filesize - fix formated/formatted mis-spelling

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/flo/editor/Mixin:
        file_size.pm
    mkd/templates/component/file:
        en.html
    mkd/templates/photo:
        en.html

-------------- next part --------------
Index: file_size.pm
===================================================================
RCS file: /var/spool/cvs/mkd/flo/editor/Mixin/Attic/file_size.pm,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -Lflo/editor/Mixin/file_size.pm -Lflo/editor/Mixin/file_size.pm -u -r1.1.2.1 -r1.1.2.2
--- flo/editor/Mixin/file_size.pm
+++ flo/editor/Mixin/file_size.pm
@@ -12,13 +12,13 @@
   $size = $image->file_size;
 
   # print a human-readable size
-  print $image->formated_file_size();
+  print $image->formatted_file_size();
 
 =head1 DESCRIPTION
 
 This mixin adds file-size methods to file, image and photo components.
 Two methods are available - file_size() which returns the size of the
-file in bytes and formated_file_size() which returns a human-readable
+file in bytes and formatted_file_size() which returns a human-readable
 size (ex: 12kb, 20mb).
 
 =head1 AUTHOR
@@ -64,7 +64,7 @@
     return -s _;
 }
 
-sub formated_file_size {
+sub formatted_file_size {
     my $self = shift;
     my $size = $self->file_size;
     
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/component/file/Attic/en.html,v
retrieving revision 1.1.2.16
retrieving revision 1.1.2.17
diff -Ltemplates/component/file/en.html -Ltemplates/component/file/en.html -u -r1.1.2.16 -r1.1.2.17
--- templates/component/file/en.html
+++ templates/component/file/en.html
@@ -180,6 +180,6 @@
       petal:content="self/title"
       petal:attributes="href self/uri"
     >wonderful-file.txt</a>
-    (<span petal:replace="self/formated_file_size"></span>)
+    (<span petal:replace="self/formatted_file_size"></span>)
   </p>
 </div>
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/photo/Attic/en.html,v
retrieving revision 1.1.2.28
retrieving revision 1.1.2.29
diff -Ltemplates/photo/en.html -Ltemplates/photo/en.html -u -r1.1.2.28 -r1.1.2.29
--- templates/photo/en.html
+++ templates/photo/en.html
@@ -343,7 +343,7 @@
              dir="ltr"
            >Size:</strong>
            <span
-             petal:content="self/component/formated_file_size"
+             petal:content="self/component/formatted_file_size"
            >Size</span>
          </li>
        </ul>


More information about the MKDoc-commit mailing list