Modify

Ticket #3029 (closed Patches: fixed)

Opened 5 years ago

Last modified 5 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:

Description

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

#[id

"""` A multi-line
markup."""

#` A single-line markup.

#]

The patch also enables to import pure C code snippets:

/*[id */
 ...
/*]*/

I have been already using it in my project ( http://www.jagpdf.com/doc) 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.

Attachments

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

Change History

Changed 5 years ago by jgresula@…

patch

comment:1 Changed 5 years ago by anonymous

So cool! Definitely!

comment:2 Changed 5 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 5 years ago by anonymous

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

comment:4 Changed 5 years ago by jgresula@…

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

comment:5 Changed 5 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.

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.