You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@corinthia.apache.org by ia...@apache.org on 2015/07/05 09:12:16 UTC

incubator-corinthia git commit: Do not generate two html tags

Repository: incubator-corinthia
Updated Branches:
  refs/heads/ODFLenses 924921065 -> b0588fffc


Do not generate two html tags

Remove the html generation in the styles generation.


Project: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/commit/b0588fff
Tree: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/tree/b0588fff
Diff: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/diff/b0588fff

Branch: refs/heads/ODFLenses
Commit: b0588fffc9f76700efac8d16b61a13f0a4703313
Parents: 9249210
Author: ianc <ia...@apache.org>
Authored: Sun Jul 5 15:04:53 2015 +0800
Committer: ianc <ia...@apache.org>
Committed: Sun Jul 5 15:04:53 2015 +0800

----------------------------------------------------------------------
 DocFormats/filters/odf/src/formatting/ODFStyles.c | 12 ------------
 1 file changed, 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/b0588fff/DocFormats/filters/odf/src/formatting/ODFStyles.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/odf/src/formatting/ODFStyles.c b/DocFormats/filters/odf/src/formatting/ODFStyles.c
index 187a94d..2d6589e 100644
--- a/DocFormats/filters/odf/src/formatting/ODFStyles.c
+++ b/DocFormats/filters/odf/src/formatting/ODFStyles.c
@@ -201,18 +201,6 @@ CSSSheet *ODFStylesGet(ODFConverter *converter)
     CSSStyle *bodyStyle = CSSSheetLookupElement(styleSheet,"body",NULL,1,0);
     CSSPut(CSSStyleRule(bodyStyle),"counter-reset","h1 h2 h3 h4 h5 h6 figure table");
 
-
-    DFNode *body = NULL;
-    body = DFCreateChildElement(converter->html->root, HTML_BODY);
-    converter->body = body;
-    DFNode *head = DFChildWithTag(converter->html->root,HTML_HEAD);
-    if (head == NULL) {
-        head = DFCreateElement(converter->html,HTML_HEAD);
-        DFNode *body = DFChildWithTag(converter->html->root,HTML_BODY);
-        converter->body = body;
-        DFInsertBefore(converter->html->root,head,body);
-    }
-
     printf(RED
     "============================================================\n"
     "Process ODF style nodes prior to the traverseContent function\n"