I have the following code blocks:
Block 1 is just one line. This is a MWE. In reality, I have several lines in block 1.
#+name: block1
#+begin_src python :noweb no :exports none
print("Block 1")
#+end_src
Block 2 has also been reduced for the sake of MWE.
#+name: block2
#+begin_src python :noweb no :exports none
<<block1>>
print("Block 2")
#+end_src
This shows a skeleton of myfunc. I want to include this skeleton to give an overview of myfunc.
#+name: block3
#+begin_src python :noweb no :exports code
def myfunc(x):
<<block2>>
#+end_src
Finally, this shows the full specification of myfunc.
#+begin_src python :noweb yes :exports code
<<block3>>
#+end_src
What I expect it to look like when exported
def myfunc(x):
print("Block 1")
print("Block 2")
What it actually looks like
def myfunc(x):
<<block1>>
print("Block 2")
How can I get the nested blocks to expand completely when I use :noweb yes?