emacs-orgmode
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[O] Have SRC_BLOCK :padline accept numbers
From
:
Daniel P Gomez
Subject
:
[O] Have SRC_BLOCK :padline accept numbers
Date
:
Tue, 28 Mar 2017 21:47:42 +0200
A use case is tangling python source code snippets containing class definitions.
(
http://emacs.stackexchange.com/questions/31738/org-mode-babel-ensure-two-empty-lines-between-tangled-code-blocks-for-python
)
Per PEP8, the use of blank lines stipulates:
"Surround top-level function and class definitions with two blank lines."
To achieve two blank lines before a class definition, one would have to set :padline 2.
I've written a small patch (attached here), following the contribution guidelines on the org-mode website. The "patched" repository can be found here:
https://github.com/dangom/org-mode/tree/feature_padline
Please let me know if there is anything else I should do.
Thanks,
Daniel
0001-Add-support-for-padline-with-numbers-in-ob-tangle.patch
Description:
Binary data
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[O] Have SRC_BLOCK :padline accept numbers
,
Daniel P Gomez
<=
Re: [O] Have SRC_BLOCK :padline accept numbers
,
Nicolas Goaziou
,
2017/03/29
Re: [O] Have SRC_BLOCK :padline accept numbers
,
Daniel P Gomez
,
2017/03/29
Re: [O] Have SRC_BLOCK :padline accept numbers
,
Nicolas Goaziou
,
2017/03/30
Prev by Date:
[O] More clocktable breakage
Next by Date:
[O] can I export all PROPERTIES to my ascii output?
Previous by thread:
[O] More clocktable breakage
Next by thread:
Re: [O] Have SRC_BLOCK :padline accept numbers
Index(es):
Date
Thread