Uwe Brauer via "General discussions about Org-mode."
writes:
> Ok understood, but then, who can I add hlines to table that does not
> possess any?
#+name: test
| 1 | 2 |
| 3 | 4 |
#+name: add-hlines
#+begin_src emacs-lisp :var table='(1 2) :results value
(let (result)
(when table
(unless
>>> "IR" == Ihor Radchenko writes:
> Uwe Brauer via "General discussions about Org-mode."
> writes:
>> #+NAME: many-cols
>> | a | b | c |
>> | d | e | f |
>> | g | h | i |
>>
>> #+NAME: hline-please
>> #+BEGIN_SRC python :var tab=many-cols :hlines yes
>> return tab
>> #+END_SRC
>>
>>
Uwe Brauer via "General discussions about Org-mode."
writes:
> #+NAME: many-cols
> | a | b | c |
> | d | e | f |
> | g | h | i |
>
> #+NAME: hline-please
> #+BEGIN_SRC python :var tab=many-cols :hlines yes
> return tab
> #+END_SRC
>
> #+RESULTS: hline-please
> | a | b | c |
> | d | e | f |
> | g
> Uwe Brauer via "General discussions about Org-mode."
> writes:
> No, this is because you customized `org-src-preserve-indentation' or
> `org-edit-src-content-indentation', while the provided example only
> works with default indentation settings. Python is sensitive to
> whitespace and your
Uwe Brauer via "General discussions about Org-mode."
writes:
> I tried to use the examples of the above link
> ...
> #+NAME: no-hline
> #+BEGIN_SRC python :var tab=many-cols :hlines no
> return tab
> #+END_SRC
>
> Now already the first failed:
> ,
> |
> | File "", line 4
> | return
Hi
I tried to use the examples of the above link
#+NAME: many-cols
| a | b | c |
|---+---+---|
| d | e | f |
|---+---+---|
| g | h | i |
#+NAME: no-hline
#+BEGIN_SRC python :var tab=many-cols :hlines no
return tab
#+END_SRC
Now already the first failed:
,
|
| File "", line 4
|