Skip to content

%% not working when not at the beginning of the line #323

Closed
@pjadzinsky

Description

@pjadzinsky

Hello,

Thanks for developing and maintaining a great package.

I have a template that looks like this

# -*- coding: utf-8 -*-
%%pip install package
if <some condition>:
    %%pip install <some other package>

This gets rendered into

# -*- coding: utf-8 -*-
%pip install package
if <some condition>:
    %%pip install <some other package>

where the last line starts with (some spaces) + %%

Trying to template

# -*- coding: utf-8 -*-
%%pip install package
if <some condition>:
    %pip install <some other package>

Raises
Thanks again

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions