Skip to content

gallery_directive / gallery_shortcode plugin on Windows #402

@sedutec

Description

@sedutec

Hello,
I am using Nikola 8.2.0 on my Win10 machine with Winpython 3.9.8.0 and have a Windows specific problem when using the gallery_directive or the gallery_shortcode. It is a typical forward vs backslash issue.
On my Linux machine this error is not there.

This is part of the generated output. The problem is the %5C, which represents the backslash. If I manually replace %5C with "/", then everything is fine.

<div id="gallery_container"></div>
<div class="row">
    <div class="col-xs-6 col-md-3">
        <a href="../../galleries%5CCivetta/Civetta01.jpg" class="thumbnail image-reference" title="Civetta01">
            <img src="../../galleries%5CCivetta/Civetta01.thumbnail.jpg" alt="Civetta01"></a>
    </div>
    <div class="col-xs-6 col-md-3">
        <a href="../../galleries%5CCivetta/Civetta02.jpg" class="thumbnail image-reference" title="Civetta02">
            <img src="../../galleries%5CCivetta/Civetta02.thumbnail.jpg" alt="Civetta02"></a>
    </div>

I firstly tried to fix the problem myself, but I even didn't succeed to get a simple print statement out to the console.
Regards,
Sebastian

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