[MKDoc-commit] [1.6] comment component, this add_component() method doesn't mangle

bruno at mkdoc.demon.co.uk bruno at mkdoc.demon.co.uk
Fri Aug 26 15:58:44 BST 2005


Log Message:
-----------
[1.6] comment component, this add_component() method doesn't mangle utf-8

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/flo/plugin:
        Comment.pm

-------------- next part --------------
Index: Comment.pm
===================================================================
RCS file: /var/spool/cvs/mkd/flo/plugin/Attic/Comment.pm,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -Lflo/plugin/Comment.pm -Lflo/plugin/Comment.pm -u -r1.1.2.2 -r1.1.2.3
--- flo/plugin/Comment.pm
+++ flo/plugin/Comment.pm
@@ -102,12 +102,8 @@
         cgi        => $cgi
     );
 
-    my $editor = new flo::Editor();
     my $document = $self->parent;
-    $editor->parse_xml ($document->{Body});
-    $editor->add_component ($document, $text_obj);
-
-    $document->{Body} = $editor->generate_xml();
+    $document->add_component ($text_obj);
     $document->save();
 }
 


More information about the MKDoc-commit mailing list