Bug 769438 - [PATCH] Fix syntax of code examples within rpm-guide-programming-python.xml
Summary: [PATCH] Fix syntax of code examples within rpm-guide-programming-python.xml
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora Documentation
Classification: Fedora
Component: rpm-guide
Version: devel
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Ben Cotton
QA Contact: Fedora Docs QA
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-20 20:37 UTC by Dave Malcolm
Modified: 2017-12-14 10:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-14 10:30:23 UTC
Embargoed:


Attachments (Terms of Use)
Patch to Rpm Guide to fix rpm-guide-programming-python.xml (69.17 KB, patch)
2011-12-20 20:37 UTC, Dave Malcolm
no flags Details | Diff

Description Dave Malcolm 2011-12-20 20:37:40 UTC
Created attachment 548940 [details]
Patch to Rpm Guide to fix rpm-guide-programming-python.xml

Unfortunately the examples of Python code within the RPM guide have been thoroughly broken since the initial conversion to DocBook, due to the way Python treats leading whitespace as significant.

I'm attaching a patch which overhauls this page, so that the code examples are syntactically valid.  See the notes in the patch

Comment 1 Dave Malcolm 2011-12-20 20:38:42 UTC
Note: bugzilla is mangling the patch somewhat.  Use the "raw" viewing mode aka:
  https://bugzilla.redhat.com/attachment.cgi?id=548940
to see the additional notes at the top of the patch.

Comment 2 Ben Cotton 2011-12-20 21:18:00 UTC
Patch committed.

Comment 3 Dave Malcolm 2012-04-17 18:01:15 UTC
Has the html been regenerated yet?

When I google for "rpm python api docs" it takes me to:
http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/index.html

and these have the old, broken version of the python api docs.

Comment 4 Ben Cotton 2012-04-17 18:11:05 UTC
The HTML has not been regenerated yet, I'll try to get to that shortly.

Comment 5 Petr Kovar 2017-12-14 10:30:23 UTC
The RPM Guide has been deprecated in favor of https://rpm-packaging-guide.github.io/.

Closing the issue here.


Note You need to log in before you can comment on or make changes to this bug.