empty examples in documentation

Bug #328546 reported by Marc Schinnenburg
2
Affects Status Importance Assigned to Milestone
openWNS SDK
Fix Committed
Medium
Karsten Klagges

Bug Description

It may happen that examples generated from source are empty. To fix this the following needs to be added in

wnsbase/playground/builtins/CPPDocumentation/CPPDocumentation.py (around line 243)

     example = example.replace('CPPUNIT_', '')

     exampleFileName = os.path.join(dstPath, exampleName)
     fd = os.open(exampleFileName, os.O_WRONLY | os.O_CREAT | os.O_EXCL)
     f = os.fdopen(fd, "w")
     f.write("\n" + example)
     f.close() <--- THIS IS MISSING :)

     example = None
     continue

 if example is not None:

Related branches

description: updated
Changed in openwns-sdk:
assignee: nobody → karsten.klagges
importance: Undecided → Medium
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.