Book a Demo

Author Topic: Python docstring mangling  (Read 4154 times)

Scott Bowman

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Python docstring mangling
« on: November 22, 2008, 05:44:37 am »
 >:(
1. Create a class and add a member function.
Type a few lines of notes for the class or the function in the properties dialog box. Be sure to write at least 2 lines in the the notes seperated by the return key.

2. Generate the Python code

3. View the source. It looks great, including the notes that it adds as a python docstring at the beginning of the function.

4. Now, without changing the generated code or the class inside EA... select the class in EA and Syncronize Code...

5. See how syncronize code has totally mangled the python docstring. Return characters are now missing and all line are munged together.

Can't we finally have a fix for this? What good is this if I cannot document my code?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Python docstring mangling
« Reply #1 on: November 24, 2008, 08:37:55 am »
There is an option for stripping newlines out of comments, something more useful for other languages.

I'd recommend clearing that (Tools | Options | Source Code Engineering | Remove Hard Breaks from comments on import)