emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

quotation marks in table cell vs. org-babel-ref-resolve


From: Greg Minshall
Subject: quotation marks in table cell vs. org-babel-ref-resolve
Date: Fri, 03 Dec 2021 20:28:51 +0300

hi.  i'm trying to use =org-babel-ref-resolve= to access the values of a
column in a table.  it all works fine for many cases.  however, if the
contents of an entry in the column starts with quotation marks, those
quotation marks disappear, and anything outside the quoted part of the
cell "disappears" (in the result).  see below.

would this be intentional?  a bug?

or, if there's a better way to retrieve the contents of a table column,
i'd love to hear.

cheers, Greg

ps -- it doesn't seem to matter that "35" can be considered an integer;
i.e., "a35" seems to behave the same.

----
#+name: foo
| this | is |  a | header                           |
|------+----+----+----------------------------------|
|   33 | 42 | 32 | "35"                             |
|   33 | 42 | 32 | "35" thirtyfive                  |
|   33 | 42 | 32 | 35 thirtyfive                    |
|   33 | 42 | 32 | thirtyfive "35"                  |
|   33 | 42 | 32 | thirtyfive "35" post-thirty-five |

#+begin_src elisp
  (org-babel-ref-resolve "foo")
#+end_src

#+RESULTS:
| this | is |  a | header                           |
|------+----+----+----------------------------------|
|   33 | 42 | 32 | 35                               |
|   33 | 42 | 32 | 35                               |
|   33 | 42 | 32 | 35 thirtyfive                    |
|   33 | 42 | 32 | thirtyfive "35"                  |
|   33 | 42 | 32 | thirtyfive "35" post-thirty-five |



reply via email to

[Prev in Thread] Current Thread [Next in Thread]