Michael Ferner - 2015-04-30

Hello,

i work on Fedora 21 with doxygen 1.8.9.1 and doxypypy for documenting a pthon project. My Problem is the HTML generation formats the code. Example:

orignal

-- coding: utf-8 --

from logic.GenericLogic import GenericLogic
from collections import OrderedDict
import threading
import numpy as np
import time

class MagnetLogic(GenericLogic):
"""This is the Interface class to define the controls for the simple
magnet hardware.
"""

def __init__(self, manager, name, config, **kwargs):
    ## declare actions for state transitions
    state_actions = {'onactivate': self.activation}
    GenericLogic.__init__(self, manager, name, config, state_actions, **kwargs)

html output

1 # -*- coding: utf-8 -*-
2 
3 from logic.GenericLogic import GenericLogic
4 from collections import OrderedDict
5 import threading
6 import numpy as np
7 import time
8 
9 ##

10 # This is the Interface class to define the controls for the simple
11 # magnet hardware.
12 #
13 class MagnetLogic(GenericLogic):
14
15 def init(self, manager, name, config, kwargs):
16 ## declare actions for state transitions
17 state_actions = {'onactivate': self.activation}
18 GenericLogic.init(self, manager, name, config, state_actions,
kwargs)
19 self._modclass = 'magnetlogic'
20 self._modtype = 'logic'

result

We have different line numbers. The original code has the class defintion for MagnetLogic on line 9 and the html output on line 13.

Give's a configuration option for leave the code as it is?

Thanks for help.