Changes between Version 11 and Version 12 of OdtExportPlugin


Ignore:
Timestamp:
Jul 28, 2011, 2:37:45 AM (13 years ago)
Author:
Benoit Grégoire
Comment:

Use the same values as the default values for the start and stop keywords, mention the patch to remove macro content in sub pages.

Legend:

Unmodified
Added
Removed
Modified
  • OdtExportPlugin

    v11 v12  
    3535 * '''img_default_width''' (string, defaults to `8cm`) : the width of an exported image when the plugin can't compute it.
    3636 * '''img_default_height''' (string, defaults to `6cm`) : the height of an exported image when the plugin can't compute it.
    37  * '''remove_macros''' (list, defaults to `PageOutline, TracGuideToc, TOC`) : the macros which will be removed on export. This is mainly because the table of contents should be handled in the ODT directly, not by generating a list of links. Warning, if these macros are in a sub-page included by the IncludeMacro (or similar), they will not be removed.
     37 * '''remove_macros''' (list, defaults to `PageOutline, TracGuideToc, TOC`) : the macros which will be removed on export. This is mainly because the table of contents should be handled in the ODT directly, not by generating a list of links. Warning, if these macros are in a sub-page included by the IncludeMacro (or similar), they will not be removed.  In the specific case of IncludeMacro however, there is a [ticket:9035 patch available] to fix that.
    3838
    3939Those options must be put under a `[odtexport]` section in the ini file, such as :
     
    4444}}}
    4545
    46 === About the `CUT-START` and `CUT-STOP` tags ===
     46=== About the `TRAC-ODT-CUT-START` and `TRAC-ODT-CUT-STOP` tags ===
    4747
    48 In an ODT file, the only styles that will be saved are the styles which are applied to some content in the document. If you want to create an empty ODT document for this plugin, and still want to define styles which will be applied to the wiki content, you have to write some dummy text, apply the styles to this text, and surround the text in the `CUT-START` and `CUT-STOP` tags. This way, the styles will be retained in the ODT file, but the dummy text will be removed on export.
     48In an ODT file, the only styles that will be saved are the styles which are applied to some content in the document. If you want to create an empty ODT document for this plugin, and still want to define styles which will be applied to the wiki content, you have to write some dummy text, apply the styles to this text, and surround the text in the `TRAC-ODT-CUT-START` and `TRAC-ODT-CUT-STOP` tags. This way, the styles will be retained in the ODT file, but the dummy text will be removed on export.
    4949
    5050=== Choosing a template ===