Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A python script that extracts code from a literate programming document in "noweb" format.
Python
branch: master

Fix chunks with same name not getting appended together...

> From: Jörg Höhne
> Subject: "Serious" bug in noweb.py
> Date: Sun, 19 Apr 2015 11:48:25 +0200
> To: jonathan.aquino@gmail.com
>
> Dear Jonathan,
> there is bug in the python script regarding the original noweb specification. The specifications states that chunks of the same name are concatenated which does not happen as each identified chunk name creates an empty list (line 25).
>
> To check the problem simply add
>
> <<license>>=
> Error: Chunks with the same name should be concatenated...
> @
>
> to the file noweb.py.txt. Change line 25 to
>
> chunks[chunkName] = chunks.get(chunkName, [])
>
> solves the bug by returning the already filled list or, in case of a previously unknown chunk name, an empty list.
>
> Best regards,
> Jörg
>
latest commit 81cd901a73
Jonathan Aquino authored
Something went wrong with that request. Please try again.