Re: [O] About indentation when the src block is under a list
Thanks! :) Charles Berry writes: > zwz gmail.com> writes: > > >> Here is an example: >> >> * array >> ** search >>- example >> #+BEGIN_SRC c >> /* find score in scores >>,* return the index if found or -1 */ >> int search(int scores[], int n, int score){ >> int i = 0; >> for(; i> return -1; >> } >> #+END_SRC >> >> >>- test >> > > If you want a manual fix, put point in the begin_src line then use > > C-c ' C-c ' > > that's org-metaright, next-line, org-edit-special, org-edit-src-exit > > HTH,
Re: [O] About indentation when the src block is under a list
zwz gmail.com> writes: > Here is an example: > > * array > ** search >- example > #+BEGIN_SRC c > /* find score in scores >,* return the index if found or -1 */ > int search(int scores[], int n, int score){ > int i = 0; > for(; i return -1; > } > #+END_SRC > > >- test > If you want a manual fix, put point in the begin_src line then use C-c ' C-c ' that's org-metaright, next-line, org-edit-special, org-edit-src-exit HTH,
[O] About indentation when the src block is under a list
--text follows this line-- Here is an example: * array ** search - example #+BEGIN_SRC c /* find score in scores ,* return the index if found or -1 */ int search(int scores[], int n, int score){ int i = 0; for(; i - test The indentation of the src block is OK, but it is relative to the second-level headline ("**search"), rather than the list "- example". In this way, I can not create another list item ("- test") at the point (illustrated by ) by Alt+Enter. I tried the variable org-indent-indentation-per-level, org-adapt-indentation and so on, but failed to indent the src block relative to the list item. So anyone please give me some hint.