Skip to content
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

:decorator-lines: option for literalinclude #3530

Closed
wants to merge 1 commit into from
Closed

:decorator-lines: option for literalinclude #3530

wants to merge 1 commit into from

Conversation

rayl
Copy link
Contributor

@rayl rayl commented Mar 8, 2017

Not a true fix, but maybe a useful hack.

Signed-off-by: Ray Lehtiniemi [email protected]

Subject: Workaround for #3348

Feature or Bugfix

  • Feature

Purpose

  • Provide a quick workaround for the :pyobject: option to literalinclude to deal with decorators

Detail

Just manually specify the number of lines you want the pyobject block to pull in from the source file.

Relates

Not a true fix, but maybe a useful hack.

Signed-off-by: Ray Lehtiniemi <[email protected]>
@tk0miya
Copy link
Member

tk0miya commented Mar 9, 2017

Sorry, I can't accept this workaround.
Adding option is bad way. Then we'll have to support it for a while.

So we should handle the decorators proper way. How about look the lines above the pyobject?
All decorators starts with @, so it might go well.

@tk0miya tk0miya closed this Mar 9, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants