Hello all,

The noweb reference in the included file is not present in tangle (and
sometimes also is not present within the results in the buffer).

I am using: Org-mode version 8.3beta release_8.3beta-625-g8985b3

Please see the attached ECM with my comments (look for BUG).  Let me
know if you want to have a look to the generated files.

You need ledger, but I guess this is a more general problem.

Thanks in advance,
Daniele

#+EXPORT_EXCLUDE_TAGS: noexport

* Org Setup 							   :noexport:
#+NAME: loadledger
#+BEGIN_SRC emacs-lisp :results none
(org-babel-do-load-languages 'org-babel-load-languages '((ledger . t) ))
#+END_SRC

* Financial Summaries

** Inline Opening						   :noexport:
#+NAME: opening-inline
#+BEGIN_SRC ledger :noweb yes :results output silent :exports none
2015-01-01 * Opening
  Assets:bank:savings:inline  1.00 €
  Equity:Opening Balances
#+END_SRC

** Included Opening						   :noexport:
#+INCLUDE: "./included.org"

** An overall balance summary
#+name: balance
#+BEGIN_SRC ledger :noweb yes :exports results :cmdline bal :results output
<<opening-inline>>
<<opening-included>>
#+END_SRC

#+RESULTS: balance
:               1.00 €  Assets:bank:savings:inline
:              -1.00 €  Equity:Opening Balances
: --------------------
:                    0

** An overall balance summary with not working tangle

In this section the result in the export are correct, but the tangled
files contains only the =opening-inline= ref.  BUG?

#+name: tangled
#+BEGIN_SRC ledger :noweb yes :tangle ledger-buggy1.dat :results output :exports results
<<opening-inline>>
<<opening-included>>
#+END_SRC

#+RESULTS: tangled
:               1.00 €  Assets:bank:savings:inline
:              -1.00 €  Equity:Opening Balances
: --------------------
:                    0

** All the raw data

In this section the result:

- inline in the document =C-c C-c= are incorrect BUG?
- in the tangled files contain only the =opening-inline= ref. BUG?
- but in the exported file are correct

#+name: tangled-buggy
#+BEGIN_SRC ledger :noweb yes :tangle ledger-buggy2.dat :results output :exports results :cmdline print
<<opening-inline>>
<<opening-included>>
#+END_SRC

#+RESULTS: tangled-buggy
: 2015/01/01 * Opening
:     Assets:bank:savings:inline                1.00 €
:     Equity:Opening Balances

* Openings

#+NAME: opening-included
#+BEGIN_SRC ledger :noweb yes :results output silent :exports none
2015-01-01 * Opening
  Assets:bank:savings:included  -1.00 €
  Equity:Opening Balances
#+END_SRC

Reply via email to