From mboxrd@z Thu Jan 1 00:00:00 1970 From: dmg Subject: question about org-coderef-label-format and HTML export Date: Mon, 5 Dec 2016 11:55:13 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDzMi-0001Ue-G0 for emacs-orgmode@gnu.org; Mon, 05 Dec 2016 14:55:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDzMh-0002Ig-Kj for emacs-orgmode@gnu.org; Mon, 05 Dec 2016 14:55:56 -0500 Received: from mail-vk0-x230.google.com ([2607:f8b0:400c:c05::230]:35819) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cDzMh-0002IW-EO for emacs-orgmode@gnu.org; Mon, 05 Dec 2016 14:55:55 -0500 Received: by mail-vk0-x230.google.com with SMTP id w194so184739187vkw.2 for ; Mon, 05 Dec 2016 11:55:55 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode hi everybody, I was playing with org-coderef-label-format to reference lines of code in blocks. I created a small example that overrides the default value: #+BEGIN_SRC C++ :main no :flags -std=c++14 -Wall --pedantic -Werror :results output :exports both -r -l "//(ref:%s)" +n #include int main() { //(ref:abc) std::cout << "Hello world" << std::endl; std::cout << "Hello world 2" << std::endl; //(ref:jump) return 0; } #+END_SRC #+RESULTS: #+begin_example Hello world Hello world 2 #+end_example In line [[(abc)]] we remember the current position. [[(jump)][Line (jump)]] jumps to point-min. This seem to work, except for one issue. the refs are exported to the HTML file: It only sports the label, not the reference name. See below. Note how //ref:(abc) in the source code was replaced with //(abc) { // (abc) Is this the expected behaviour? or am I doing something wrong? my version of org-mode is: 9.0.1 thank you! --daniel -- --dmg --- Daniel M. German http://turingmachine.org