Menu

#4291 (ok 4.1.9) Unable to export comments in OpenDocument text format

4.1.7
fixed
1
2014-03-06
2014-02-19
No

In 4.1.7 (but also in 4.0.6 and maybe earlier 4.x versions) it is impossible to export the comments in "OpenDocument Text" format regardless of the state of the "Display comments" checkbox.

The problem seems to be that ExportOdtClass.php sets the "odt_comments" option to force inclusion of comments in output, however export.php only checks for "_include_comments", like this:

$do_comments = isset($GLOBALS[$what . '_include_comments']);

For me, I solved it this way:

$do_comments = isset($GLOBALS[$what . '_include_comments']) || isset($GLOBALS[$what . '_comments']);

The same problem may also occur for latex output, which also set the "latex_comments" setting rather than "latex_include_comments".

Discussion

  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
     
  • Madhura Jayaratne

    • summary: Unable to export comments in OpenDocument text format --> (ok 4.1.9) Unable to export comments in OpenDocument text format
    • status: open --> resolved
    • Priority: 5 --> 1
     
  • Marc Delisle

    Marc Delisle - 2014-03-06
    • Status: resolved --> fixed
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.