Return stringified multi-valued list

This commit is contained in:
Jesse Millwood 2024-10-09 10:36:22 -04:00
parent 82f7522809
commit 7fba972dec

View File

@ -21,7 +21,8 @@
(elt-b nil) (elt-b nil)
(elt-e nil) (elt-e nil)
(elt nil) (elt nil)
(values '())) (values '())
(values-str ""))
(save-excursion (save-excursion
(setq elt-b (search-forward-regexp (format ":%s\\+?:" prop) end t)) (setq elt-b (search-forward-regexp (format ":%s\\+?:" prop) end t))
(while elt-b (while elt-b
@ -31,8 +32,10 @@
(setq values (cons elt values)) (setq values (cons elt values))
(setq elt-b (search-forward-regexp (format ":%s\\+?:" prop) end t))) (setq elt-b (search-forward-regexp (format ":%s\\+?:" prop) end t)))
) )
values (dolist (elt values values-str)
)) (let ((sep (if (> (length values-str) 0) ", " "") ))
(setq values-str (format "%s%s%s" values-str sep elt))
))))
(defun extract-company-data () (defun extract-company-data ()
(let* ((cur-point (point)) (let* ((cur-point (point))
@ -78,6 +81,9 @@
) )
#+end_src #+end_src
#+RESULTS: export_block
: t
* Terms * Terms
- SBIR - SBIR
- STTR - STTR