GNOME Bugzilla – Bug 770660
Code snippet always shows line numbers from 1
Last modified: 2016-09-05 13:45:29 UTC
The following Doxygen comment fragment (taken from python code) # To demonstrate the API, take a look at the transducer_setup method of # the app class (in pyscope_any.py) below: # # \snippet this transducer_setup # # multiMode must be set to 4 to support multiple transducers (0 for legacy mode). produces (via html output) ====== To demonstrate the API, take a look at the transducer_setup method of the app class (in pyscope_any.py) below: 1 def transducer_setup(self): 2 tc1 = TraceCollector() 3 tc1.on_init() 4 settings = TraceCollectorPy.SGprSettings() 5 settings.points_per_trace = PPT 6 # This may need shifting for different frequencies 7 settings.window_timeshift_ps = -42000 8 settings.multiMode = 4 9 # edit tuples in following call for different transducer arrangements 10 tc1.prepare_transducers(0, 1, settings, [(1, 1, 1), (2, 2, 1)]) 11 # put RX scopes in right slots 12 tc1.add_scope(2) 13 # add our new trace-collector to list 14 self._trace_collectors.append(tc1) multiMode must be set to 4 to support multiple transducers (0 for legacy mode). ====== I would like to see line numbers reflecting the actual line numbers from the code file.
I've just pushed a proposed patch to github (pull request 514)
Code has been integrated in master branch on github
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.12. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferably in the form of a self-contained example).