Ticket #3029 (closed Patches: fixed)

Opened 8 years ago

Last modified 8 years ago

quickbook - import Python code snippets

Reported by: jgresula@… Owned by: danieljames
Milestone: Boost 1.40.0 Component: quickbook
Version: Boost Development Trunk Severity: Not Applicable
Keywords: Cc:


The attached patch allows to import Python code snippets. The syntax is:


"""` A multi-line

#` A single-line markup.


The patch also enables to import pure C code snippets:

/*[id */

I have been already using it in my project ( for some time now without problems.

If there is an interest in this functionality, I'm willing to help with anything related - tests, code polishing, etc.


quickbook.patch (6.9 KB) - added by jgresula@… 8 years ago.

Change History

Changed 8 years ago by jgresula@…


comment:1 Changed 8 years ago by anonymous

So cool! Definitely!

comment:2 Changed 8 years ago by danieljames

  • Owner changed from djowel to danieljames
  • Status changed from new to assigned

Applied in [53018]. I've also made a few changes, the only significant one is that it now checks for files ending with '.py' instead of 'py'. I'll change it back if that isn't okay.

comment:3 Changed 8 years ago by anonymous

Checking for '.py' is definitely better. However, unless I missing something, [53018] still checks for 'py'.

comment:4 Changed 8 years ago by jgresula@…

I see that it has been changed in a later revision. Sorry for the noise. Thanks.

comment:5 Changed 8 years ago by danieljames

  • Status changed from assigned to closed
  • Resolution set to fixed

No problem. Thanks for the patch. I changed a few other things, but they all concerned problems with the existing code.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.