New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix highlight's linenothreshold for Sphinx >=1.8+ & <2.0 #783
Fix highlight's linenothreshold for Sphinx >=1.8+ & <2.0 #783
Conversation
Replace Sphinx's HighlightLanguageTransform with our own just for Sphinx versions between 1.8.0 & less than 2.0.0 as these versions have broken the linenothreshold setting in the highlight directive. This code can be removed when we drop support for Python 2 Fixes rst2pdf#721
@oz123, @ralsina or @lornajane Any chance of a review on this one? |
Not me, totally swamped IRL.
…On Thu, Sep 5, 2019 at 3:34 PM Rob Allen ***@***.***> wrote:
@oz123 <https://github.com/oz123>, @ralsina <https://github.com/ralsina>
or @lornajane <https://github.com/lornajane> Any chance of a review on
this one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#783?email_source=notifications&email_token=AAAAMK7BP2JRRTXXV7KB72TQIFGJRA5CNFSM4H2XMBZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6AIMVI#issuecomment-528516693>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAAMK3F5EAQP46YVLZKLWTQIFGJRANCNFSM4H2XMBZA>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am OK with this change, I would be happy if there was a test for it ...
I'm not sure how to write one? |
I would probably check the contect of a PDF which has:
But since this code is supposed to be removed in the next version, I don't mind having this merged as is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks! |
Replace Sphinx's
HighlightLanguageTransform
with our own just for Sphinx versions between 1.8.0 & less than 2.0.0 as these versions have broken the:linenothreshold:
setting in thehighlight
directive.This code can be removed when we drop support for Python 2
Fixes #721